You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
Suppose I have a website in which I have a iframe. I have setup my pixel in the iframe. Now if I fire any event it is taking the iframe src URL not the main website URL. Now I want to override the URL parameter. But I can't do that in the browser side pixel. As the pixel automatically collects the page URL parameter. It will be nice if we can override the URL parameter as GA4 allows to override the page_location parameter so that the right page URL shown in the event manager. Not the iframe URL.
If It is possible in the browser side pixel right now pls guide me how do I implement that.
The text was updated successfully, but these errors were encountered:
Perhaps you could try something like this: gtag('conversion', 'purchase', { page_location: top.location.href })
Note: Only work if the iframe isn't cross-origin.
Suppose I have a website in which I have a iframe. I have setup my pixel in the iframe. Now if I fire any event it is taking the iframe src URL not the main website URL. Now I want to override the URL parameter. But I can't do that in the browser side pixel. As the pixel automatically collects the page URL parameter. It will be nice if we can override the URL parameter as GA4 allows to override the page_location parameter so that the right page URL shown in the event manager. Not the iframe URL.
If It is possible in the browser side pixel right now pls guide me how do I implement that.
The text was updated successfully, but these errors were encountered: