I am integrating a sales funnel using Active Campaign and we are trying to track when a customer makes purchase in my store. Active Campaign provided this code to be added to the footer section of my store but I can't seem to find the right place to add it.
<script type="text/javascript">
(function(e,t,o,n,p,r,i){e.visitorGlobalObjectAlias=n;e[e.visitorGlobalObjectAlias]=e[e.visitorGlobalObjectAlias]||function(){(e[e.visitorGlobalObjectAlias].q=e[e.visitorGlobalObjectAlias].q||[]).push(arguments)};e[e.visitorGlobalObjectAlias].l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://diffuser-cdn.app-us1.com/diffuser/diffuser.js","vgo");
vgo('setAccount', '475573227');
vgo('setTrackByDefault', true);
vgo('process');
Hi @Burke,
Welcome to the Shopify Community!
I understand that you need to add an Active Campaign script to the footer section of your store. I may be able to help you with this.
Before you customize your theme:
How to add the Active Campaign script to Shopify:
</body>Note: Towards the top of the file there is a <body> tag without a slash "/" which is not the one you're looking for. Keep in mind that you're looking for </body> with a slash "/" towards the bottom of the file.
<script type="text/javascript"> (function(e,t,o,n,p,r,i){e.visitorGlobalObjectAlias=n;e[e.visitorGlobalObjectAlias]=e[e.visitorGlobalObjectAlias]||function(){(e[e.visitorGlobalObjectAlias].q=e[e.visitorGlobalObjectAlias].q||[]).push(arguments)};e[e.visitorGlobalObjectAlias].l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://diffuser-cdn.app-us1.com/diffuser/diffuser.js","vgo"); vgo('setAccount', '475573227'); vgo('setTrackByDefault', true); vgo('process'); </script>
</body>
Let me know if this solves your problem or if you need further help!
Brian | Shopify Partner | Ecommerce Consultant
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
- Need further assistance? Visit www.BrianAtWork.com
{{- 'home_page.slideshow.navigation_instructions' | t -}}
Hi @Burke,
The instructions I gave you were correct. However, I can see that in your first post, you are missing code from the Active Campaign script. For example, the </script> tag is missing.
You're also missing code from the theme.liquid file that you posted.
If you will post the entire script from ActiveCampaign, and also post the entire contents of the theme.liquid file – then I will help you make the correct changes.
Cheers!
Brian | Shopify Partner | Ecommerce Consultant
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
- Need further assistance? Visit www.BrianAtWork.com
Subject | Author | Posted |
---|---|---|
5m ago | ||
6m ago | ||
7m ago | ||
11m ago | ||
an hour ago |
User | Count |
---|---|
95 | |
63 | |
61 | |
56 | |
41 |