Form tracking and Click tracking are not working for Iframe only.
If we are not using the iframe then it is working fine.
We are using SnowPlow version2 and please see below form tracking code.
window.snowplow(‘enableFormTracking’);
Are you running the Snowplow Tracker within the iframe itself or on the parent page? To track things in the iframe, the tracker needs to be loaded on the page within the iframe, it should work fine then.
If not, if you can provide a reproducible example then I can investigate further.
Where is the snowplow tracker being added to the website? Is it on the page inside the iframe or only running on the parent page which hosts the iframe?
I think you have your answer there - iframes don’t share the environment with the rest of the browser, they’re sandboxed - so it’s as if that content is in a separate browser altogether.
You’ll need to run the tracker initialisation script in the iframe before you can call any track methods from that environment. It’s a good idea to do some research on how iframes work, and the details of sharing data/cookies etc between iframes and their host pages too - it can be a tricky topic.