Google Tag Manager
You can forward Persona Inquiry SDK events to Google Tag Manager’s data layer for use in analytics, conversion tracking, and other GTM-powered workflows.
This integration uses a Persona-provided GTM template that receives events from the Embedded Flow SDK and pushes them to the data layer. No changes to the Persona SDK itself are required — you only need to add a small callback to your existing SDK configuration.
Step 1: Import the Persona GTM template
Copy the template code at the bottom of this page into a file named persona-gtm-template.tpl.
Once you have the file:
- In your GTM workspace, go to Templates > Tag Templates > New.
- Click the three-dot menu in the top right and select Import.
- Select the
.tplfile. - Click Save.
Step 2: Create a tag
- Go to Tags > New.
- Under Tag Configuration, select Persona Inquiry Events as the tag type.
- Choose which events to forward:
- All events — forwards every event from the SDK.
- Lifecycle events only — forwards
ready,start,complete,cancel, anderror. - Custom selection — choose specific events to forward.
- Set a trigger (e.g. All Pages or Page Initialization) so the tag is active before the Persona SDK loads.
- Click Save, then Publish your workspace.
Step 3: Add the onEvent callback
In your existing Persona.Client configuration, add the onEvent callback:
Optionally, if you want to receive all events including click, form-update, and step-transitioned, add the eventsAllowlist parameter (requires SDK 5.8.0+):
Step 4: Use events in GTM
Events appear in the data layer as PersonaInquiry.<eventName> (e.g. PersonaInquiry.complete). Each event includes a personaEvent object with:
personaEvent.name— the event name (e.g.complete,cancel,click)personaEvent.metadata— the event metadata (see Client Callbacks for details on each event’s metadata)
Create a trigger
To fire another tag (e.g. Google Analytics, a conversion pixel) when an inquiry completes:
- Go to Triggers > New.
- Select Custom Event as the trigger type.
- Set the event name to
PersonaInquiry.complete. - Save the trigger and attach it to the tag you want to fire.
Create a data layer variable
To access event data in other tags:
- Go to Variables > User-Defined Variables > New.
- Select Data Layer Variable as the variable type.
- Set the variable name to
personaEvent.metadata.inquiryId(or any other property you need). - Use this variable in your other tags.
Google Ads Enhanced Conversions
You can use Persona’s hashed PII fields to power Google Ads Enhanced Conversions without exposing raw user data in the data layer.
To get started, contact Persona support to enable hashed fields on your inquiry template. Once enabled, the complete event metadata will include a hashedFields object containing SHA-256 hashed values for the configured fields (e.g. email_address, phone_number).
To set up Enhanced Conversions in GTM:
- Create Data Layer Variables for each hashed field you need:
personaEvent.metadata.hashedFields.email_addresspersonaEvent.metadata.hashedFields.phone_number
- Create a Google Ads: Conversion Tracking tag.
- Enter your Conversion ID and Conversion Label.
- Check Include user-provided data from your website.
- Map the user-provided data fields (Email, Phone, etc.) to the data layer variables you created above.
- Set the trigger to
PersonaInquiry.complete.
Google Ads Enhanced Conversions accepts pre-hashed SHA-256 values, so no additional transformation is needed in GTM.
Template code
Copy the contents below into a file named persona-gtm-template.tpl to import into GTM.

