
data-purchase-amount and data-locale) to the head script. See below for setup instructions based on your integration method.
Google Tag Manager
Google Tag Manager
Google Tag Manager supports dynamic variables that integrate with the data layer.
Identify Variable Name
Navigate to the variable tab in tag manager and identify/create the variable that contains product price and note the name.
To use the variable you’ll need to replace the spaces with underscores so 
Product Price would be product_price.
Add New Line to Head Script
Navigate back to the Gocertify head script within the tags section and add a new line using the format 
el.setAttribute('data-purchase-amount', '{{variable_name}}'); and the variable name you noted in the previous step.
Manually added Head Script
Manually added Head Script
If you added the gocertify.js script manually in the
<head> section of your page, you can set the data attributes like this:Via inline placement
Via inline placement
If you added the Gocertify placement manually in the
<body> section of your page, you can set the data attributes like this:Variables
The following variables are available for use in your CTA text:{{purchase-amount}}: The product price in cents (e.g. 1000 for £10).{{locale}}: The page locale in ISO 639-1 format (e.g.en-GB).{{currency}}: The page currency in ISO 4217 format (e.g.GBP). Optional. If not set, the currency associated with the locale will be used.{{savings-amount}}: The savings amount, calculated automatically based on the product price and the campaign discount.
Custom variables
You can also define custom variables by adding data attributes to the placement. For example, to include a product category in your CTA:==Save {{savings-amount}}== on this {{category}}
Then set the value for that variable as a data attribute when rendering the placement:
Save £19.60 on this itemIn practice, you’ll want to replace these hardcoded values with variables from your data layer (e.g. Google Tag Manager) or CMS.
Markdown
CTA text supports basic formatting. To highlight text (typically displayed in bold), wrap it in double equals signs:| Syntax | Result |
|---|---|
==Save {{savings-amount}}== | Save £19.60 |
==20% off== for students | 20% off for students |
