Site Tracking
```mediawiki Navigation: Main_Page > Apps > Shopify > Site Tracking
Use ActiveCampaign Site Tracking with your Shopify store
Introduction
ActiveCampaign Site Tracking is a feature that allows you to track page visits made to your Shopify store. This functionality is vital as it helps create automated workflows based on visits to your store, enhancing your marketing strategy. With Site Tracking, you gain insights about which identified contacts are visiting your pages, enabling you to tailor communications and marketing efforts effectively.
This article specifically applies to customers using the ActiveCampaign Shopify integration, providing step-by-step guidance on how to set up and utilize Site Tracking within your store.
How to Access Site Tracking
To utilize Site Tracking for your Shopify store, the feature must be properly configured following the connection of your Shopify store to your ActiveCampaign account. Depending on whether you connected your store before or after April 27, 2021, the steps to set up Site Tracking will vary.
Step-by-Step Instructions
For Connections Made on or After April 27, 2021
1. Once you connect your Shopify with ActiveCampaign, you will be prompted to install the ActiveCampaign CX Automation app in your store. 2. Upon successful installation, ActiveCampaign will:
* Automatically add Site Tracking code to your Shopify store. * Automatically whitelist your domain (your Shopify store URL) in your ActiveCampaign account.
To view your whitelisted domain: - Navigate to **Website** > **Site Tracking** in your ActiveCampaign account.
Turning Off Site Tracking
To disable Site Tracking at any time: 1. Log into your ActiveCampaign account. 2. Click **Website** > **Site Tracking**. 3. On the Tracking page, uncheck the Site Tracking box next to your whitelisted domain.
You can also toggle the Enable switch in the Site Tracking box to the "Off" position. Note that this will deactivate Site Tracking for all whitelisted domains in your ActiveCampaign account.
For Connections Made Before April 27, 2021
If you established the connection prior to the specified date, you must manually set up Site Tracking. Here’s how:
1. Click **Website** > **Site Tracking** in the left menu. 2. Toggle the Enable switch to the "On" position in the Site Tracking box. 3. Add your domain to the whitelist by typing it into the Add Website URL field and then click the Add button.
* Ensure the domain you add is your store URL. * If you're not utilizing the Conversations feature, you can uncheck the Conversations box.
4. Copy the Site Tracking code displayed in the Tracking Code box and paste it into a new text file. 5. Remove the following two Javascript tags from your text file:
* <script type="text/javascript"> * </script>
6. Save your text file as plain text with a .JS extension. (Tip: If using TextEdit on Mac, you may need to convert your document from Rich Text to Plain Text.) 7. Log into your Shopify store and navigate to **Online Store** then **Themes** on the left menu. 8. Click **Actions** from the dropdown, select **Edit Code**. 9. In the **Assets** section, select Add a new asset. 10. Click the **Choose File** button, select the Javascript file you created, and click **Upload asset.** 11. Head to the **Layout** section at the top of the Themes page and select **theme.liquid.** In the head section, add the line:
* Template:'ActiveCampaign Tracking.js' * Replace 'ActiveCampaign_Tracking.js' with your actual JS file name.
12. Click **Save** once finished.
Verifying Successful Installation
To confirm that Site Tracking code is correctly installed: 1. Visit your store's public page. 2. Open your browser's developer tools. 3. The developer console should display the JS file and the ActiveCampaign tracking code.
For assistance on locating your browser's developer tools, refer to these resources: - [Chrome Developer Tools](https://developer.chrome.com/devtools) - [Firefox Developer Tools](https://developer.mozilla.org/en-US/docs/Tools/Web_Console) - [Internet Explorer DevTools](https://docs.microsoft.com/en-us/microsoft-edge/f12-devtools-guide)
Configuration Options and Settings
- **Site Tracking Code**: A unique code connected to your ActiveCampaign account is pivotal for the tracking functionality. - **Enable/Disable Toggle**: Controls the activation of Site Tracking functionality. - **Whitelisted Domain**: The domain from which visits are tracked must be added to your whitelist to ensure proper tracking of user activities. - **Javascript Code**: Custom implementation must involve pasting the Javascript file into your Shopify store to activate tracking.
Best Practices and Tips
- Regularly check that your Site Tracking setup is functioning properly by verifying the code installation. - Ensure that your store's URL is accurately added to the whitelist. - Use the analytical data from tracked visits to inform your marketing strategies and improve customer engagement. - Familiarize yourself with the developer tools in your browser for efficient troubleshooting and validation of the tracking setup.
Troubleshooting
If you encounter issues during the setup: - Ensure that you correctly removed the specified Javascript tags. - Confirm that you saved your file with the appropriate .JS extension. - If issues persist with the Shopify theme, consult [Shopify's "Support for themes" page](https://help.shopify.com/en/manual/online-store/themes/theme-support).
FAQ
What is Site Tracking?
Site Tracking in ActiveCampaign allows you to track page visits made by identified contacts on your Shopify store, enabling automated workflows.
How do I ensure my domain is whitelisted?
You can check your whitelisted domain by navigating to **Website** > **Site Tracking** in your ActiveCampaign account.
Can I turn off Site Tracking at any time?
Yes, you can deactivate Site Tracking at any time using the settings in your ActiveCampaign account.
What should I do if my tracking code is not working?
Make sure you followed all installation steps correctly. Verify your domain is whitelisted and consider checking your browser's developer tools for errors.
Is Site Tracking available on all ActiveCampaign plans?
Yes, Site Tracking is available on the Starter, Plus, Pro, and Enterprise plans of ActiveCampaign.
Do I need technical knowledge to set up Site Tracking?
While basic web development knowledge can be beneficial, the steps are designed to be straightforward for most users.
Where can I find more resources for troubleshooting?
For more help with your Shopify theme, you can access resources directly on Shopify's support pages.
Learn more about ActiveCampaign's Site Tracking [here](https://help.activecampaign.com/hc/en-us/articles/221542267-An-overview-of-Site-Tracking). ```