Send RTP Recommendation Engine Clicks to Google Analytics

January 22, 2015 | by

Here is a solution for Marketo Real-Time Personalization (RTP) users to see clicks from the Content Recommendation Engine within Google Analytics. Once a visitor clicks the Content Recommendation bar, an event is sent to Google Analytics under Event Category “RTP-Recommendations”. In Analytics, the Recommendation Text (as it appears in the bar) will be appended to Event Label and the URL of the recommended asset will be appended to Event Action.

The script works for both Classic Google Analytics and Google Universal Analytics. This tag should be pasted at the end of the HTML page code, so it will be the last tag before the </body> tag.

As shown in the image below, asset names will show up under the events report in Google Analytics.

rtp1