Hi,
Just to clarify: the iframe contains content from the same domain as the parent frame or from a 3rd party domain? I assume you are talking about the same domain but I do not want to miss any detail 🙂
Thomas
The 3rd party domain also has the tag manager (same code) but I have no access to that part. I would like to exclude the tag manager from my side on certain pages that include that certain iFrame with the 3rd party domain.
I hope this clarifies it a bit. 🙂
You said the iframe is on a 3rd party domain but as the GTM container is the same, right? In this case I would use cross domain tracking technologies to prevent issues.
But anyway: I added this feature request to my list, I will try to add this into the next release.
That is correct. Unfortunately I don’t have access myself to the tag manager thats a 3rd party.
If this could be added that would be fantastic.
In the mean time would be there be a solution to this other then cross domain tracking solutions? Like can I code the tag code to exclude itself on a certain page?
If you are using the ‘custom’ placement you could modify the required code insertion not to execute on a specific page:
<?php if ( function_exists( 'gtm4wp_the_gtm_tag' ) && !is_page(yourpageID) ) { gtm4wp_the_gtm_tag(); } ?>