Stop analytics tracking code for a particular page
Permalink
Currently have analytics tracking code enabled throughout the site which works fine (Webtrends and Google Analytics).
However, we require a specific page to not load these tracking codes, and instead run another tracking code.
The page in question will be used as a single thank you page for form submissions and we have been told to only run conversion tracking code on that page.
Any tips on how to do this?
However, we require a specific page to not load these tracking codes, and instead run another tracking code.
The page in question will be used as a single thank you page for form submissions and we have been told to only run conversion tracking code on that page.
Any tips on how to do this?
I couldn't get this to work, but I noticed the Extra Header Content page attribute. I applied that attribute to the specific conversion page, and pasted the conversion script into that field for the conversion page. The google analytics code specified via Systems&Settings / Tracking Code is also shown in the page, but I don't think it conflicts
I'd create a page attribute like 'use_conversation_code' (text) and paste the conversion code in the page's attribute.
Then you need to copy header_required.php or footer_required.php from /concrete/elements to /elements and modify the lines where 'SITE_TRACKING_CODE' is being used. (the file depends on where you normally put your tracking code...)
I'd use something like:
Let me know if this works for you!