Editing
Enable site tracking for your Magento Store
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Step-by-step Instructions == === Step 1: Edit the Layout File === First, you need to locate and edit the layout file that Magento uses. This file can typically be found at the following path: ``` /app/design/frontend/base/default/layout/page.xml ``` Within this file, find the section defined as: ``` <block type="page/html_head" name="head" as="head"> ``` Add the following lines within this block: ``` <action method="addJs"><script>activecampaign_track.js</script></action> <action method="addItem"><type>js</type><name>activecampaign_track.js</name></action> ``` === Step 2: Name the JavaScript File === You can name the JavaScript file anything you prefer; for this guide, we will use '''activecampaign_track.js'''. === Step 3: Upload the JavaScript File === Next, you need to upload the newly created JavaScript file to your server, specifically into the '''js''' folder of your Magento installation. === Step 4: Whitelist Your Domain === Make sure to add your domain to the whitelist in your ActiveCampaign account. This step is crucial for the successful implementation of site tracking. === Step 5: Verify Installation === To confirm that the site tracking is correctly installed, you should view the network requests in your browser’s developer tools. You should see two network requests: 1. A request for the JavaScript file you added to Magento. 2. A request to prism.app-us1.com. If the JavaScript file does not appear in the network requests, try clearing your Magento cache. === Step 6: Set Up Segments === In your ActiveCampaign account, you can set up a segment for various URLs on your Magento site. This will allow you to track who visited those specific pages. === Step 7: Send Campaigns === All that's left is to send campaigns that include links to your Magento store. With these steps completed, site tracking is now operational.
Summary:
Please note that all contributions to Activepedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Activepedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information