imsandertjeee Posted March 25, 2021 Share Posted March 25, 2021 Hello, One of my clients doesn't want Google Analytics to track their page on my community. We did setup an exclude filter for it, but the code still apears on their page. I want to pay an developer to remove these 3 lines on one specific URL. Thanks. Link to comment
Daniel F Posted March 25, 2021 Share Posted March 25, 2021 It won’t track any stats if you’re using the proper code from google ( window['ga-disable-UA-XXXXXX-Y'] = true; ) imsandertjeee 1 Link to comment
imsandertjeee Posted March 25, 2021 Author Share Posted March 25, 2021 3 hours ago, Daniel F said: It won’t track any stats if you’re using the proper code from google ( window['ga-disable-UA-XXXXXX-Y'] = true; ) Where do I need to put this code ? Link to comment
CoffeeCake Posted March 25, 2021 Share Posted March 25, 2021 On the page that you don't want tracked, however this code will not remove the script tags you took a screenshot of. Instead, it will still call Google Analytics, while also instruct GA to not record analytics on the page. See: https://developers.google.com/analytics/devguides/collection/gtagjs/user-opt-out imsandertjeee 1 Link to comment
imsandertjeee Posted March 25, 2021 Author Share Posted March 25, 2021 How to get rid of the code displaying it then ? Link to comment
CoffeeCake Posted March 25, 2021 Share Posted March 25, 2021 You would need to modify (or have someone modify for you) the behavior of IPS. You have some options: Remove the Google Analytics integration configuration from the ACP entirely. This will remove the script tags from all pages of your community. Then, add the code manually to your theme with a condition to exclude the areas in question. Create or find someone to create an extension for you that would allow you to remove the tags from a selected area of your community. imsandertjeee 1 Link to comment
imsandertjeee Posted March 25, 2021 Author Share Posted March 25, 2021 Hmmm okay. Someone did pm me to create a plug-in for it. Let’s wait that put. thanks 🙂 Link to comment
Recommended Posts