Using AnalyticsJS Identify on embedded Pardot forms
October 13, 2025
This article assumes you have already installed AnalyticsJS on your website. If you’ve not yet installed AnalyticsJS, read our knowledgebase article on the topic.
Pardot forms are generally deployed to a webpage using <iframe> html code. Due cross site scripting, iframes are restricted as to the way in which they can interact with the page that they are deployed to. Simply put, they do not innately have the ability to interact with other scripts that may be deployed on the page in which they are placed on.
In order to have the AnalyticsJS script trigger an Identify event when a form is submitted, both the main AnalyticsJS script and Identify snippet must be added directly to the form within the Pardot environment.
To do this, you must edit each of the form templates “look and feel” – clicking on the “source” icon to modify the html code – and add the main AnalyticsJS script into the “above form” section, as well as add the Identify script into the “below form” section (see step 2 here for script).
For Pardot landing pages, please reference one of the below articles, depending on your particular use case. If you have any questions, please reach out to your Customer Success Manager.