Enable site tracking for your Magento Store

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


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>

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:

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

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:

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.

Was this article helpful?
0 out of 1 found this helpful

Have more questions? Submit a request

Start free trial