Limiting GTM Code Functionality on Website: Hiding Dimensions and Events from External Agency

25 views Asked by At

I have a website for ordering a product, which involves a four-step process. I've been tasked with integrating a GTM (Google Tag Manager) code from an external agency, and I already have a snippet of the code for this purpose.

However, I want to limit the agency's ability to freely inject JavaScript code, so I'm looking to restrict its functionality from my site's code level. I know I can add a condition to only send events to GA4 (Google Analytics 4), but can I override the events?

To be more specific, I want to:

Hide all the custom dimensions I'm using. Conceal or override the time clients spend on individual pages. Prevent the addition of conversion events to a button on my site. In essence, I'd like the agency to only see the number of clients on the site and their navigation between pages (a basic funnel devoid of additional data).

Is this achievable through the site's code?

0

There are 0 answers