Enable site tracking for your Magento Store

ActiveCampaign plans
Starter
Plus
Pro
Enterprise

To enable site tracking for Magento Community Edition, edit this file:

/app/design/frontend/base/default/layout/page.xml

Within this section: <block type="page/html_head" name="head" as="head">, add these lines:

<action method="addJs"><script>activecampaign_track.js</script></action>
<action method="addItem"><type>js</type><name>activecampaign_track.js</name></action>

magento_st_1.png

You can name the JavaScript file anything you want. Above we call it activecampaign_track.js.

Add the actual file to your server where Magento is installed. Put it in the "js" folder:

magento_st_2.jpg

Make sure to add your domain to the whitelist (in ActiveCampaign), and paste the JavaScript code into your Magento file (that you created above).

magento_st_3.png

To verify it's installed you should see two network requests related to this. One is for your new JavaScript file that you added to Magento, and the other is to prism.app-us1.com.

If you don't see the JavaScript include, try clearing your Magento cache.

In ActiveCampaign you can set up a segment for various URL's on your Magento site in order to see who visited them:

magento_st_4.jpeg

All that's left is to send campaigns that contain links to your Magento store and site tracking should be up and running for you.

Have more questions? Submit a request

Start free trial