Archived topic
Add ActiveCampaign Site-Tracking Code to all pages via footer
7 replies · Started by John on January 26, 2022
Hello GeneratePress Help !
I have signed up to ActiveCampaign. I want to enable site tracking. ActiveCampaign tells me that I need to install site tracking on my site. They provide a code which I am supposed to add to the footer of each page I want tracked. Well, I have far too many pages in order to do that manually. ActiveCampaign, however, states that it is most likely possible to add the code once for it to be active on all pages of my site.
Here is a link to their explanation: https://help.activecampaign.com/hc/en-us/articles/221493708-How-to-set-up-Site-Tracking#how-to-turn-on-site-tracking-and-whitelist-domains
Is there a way to add the site tracking code in one spot which will cover the entire site?
John Magee
Hi there,
you can use a Hook Element:
https://docs.generatepress.com/?s=hook+element
Paste your script into the text area.
Set the Hook to: wp_footer
Set the Display Rules > Location to Entire Site
Done.
I'm getting the hang of this.
Thank you, David.
As always ... super fast, super helpful.
John
Happy to be of help!
Hello, may i know where is the "TEXT" area?
I would like to add the same tracking code.
Thank you.
Hi Ralph,
You may refer to this when creating a new Hook Element: https://share.getcloudapp.com/qGurkn7v
Also see: https://docs.generatepress.com/article/hooks-element-overview/
Hope this helps! :)
Hello Fernando,
Thank you very much.
Have a nice day!
You’re welcome Ralph! Glad to be of assistance! Feel free to reach out anytime if you’ll need assistance with anything else. Have a nice day as well! :)