Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 25, 20214 yr 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.
March 25, 20214 yr It won’t track any stats if you’re using the proper code from google ( window['ga-disable-UA-XXXXXX-Y'] = true; )
March 25, 20214 yr Author 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 ?
March 25, 20214 yr 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
March 25, 20214 yr 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.
March 25, 20214 yr Author Hmmm okay. Someone did pm me to create a plug-in for it. Let’s wait that put. thanks 🙂