Wordpress Plugin
Install and validate AdPage Tagging for your WordPress site.
Use the AdPage Tagging WordPress plugin to track supported form submissions.
Before you start
Have access to your WordPress admin and Google Tag Manager container. Remove duplicate form tracking before testing the plugin.
The plugin supports Contact Form 7 and Gravity Forms.
Install the plugin
Validate the installation
Use Google Tag Manager Preview to test your website. Submit a supported form during one test session.
Confirm the trytagging_generate_lead event appears in the data layer. Check that the event contains the expected form fields.
See generate_lead dataLayer (Contactform7 & GravityForms) to turn this event into a GA4 conversion.
Available WordPress events
The plugin sends this event when a supported form is submitted:
trytagging_generate_lead
The event includes submitted form data in form_data. Field names depend on your form configuration.
Troubleshooting
If the event does not appear, confirm the plugin is active. Then check that the submitted form uses Contact Form 7 or Gravity Forms.
If events duplicate, disable overlapping form or tag-manager integrations. Retest in an incognito window after clearing site data.
Settings
Webhook
This will set the order status trigger for sending the webhook.
Google Business Vertical
With this setting you can set a parameter value in the datalayer for a vertical
Debug mode
Is used to add logging for debugging
Place GTM scripts yourself
This option will not load the GTM script but the other functions will work for the plugin.
Use old purchase flow
Purchase flow trigger is based on hook from wooCommerce purchase. This setting will activate another source as trigger for the purchase. Here there are multiple hooks used with ids that fires a purchase when the next possible page gets loaded. We do not recommend activating this settings by default.
Prevent duplicate script injection
Enable when the GTM container loads more than once per page. This will activate a function to block multiple GTM scripts.
Cookie keeper
All pages loads will be cached. In server cookies will be set in cache and in client this will not be cached. This is for deside where the cookies will be set.
Last updated
Was this helpful?

