Follow the steps below to integrate ProfitMetrics Universal Integration through Google Tag Manager
NOTE: You will need your Public ID, we recommend recording it from here in advance
Import templates
- Download these two templates:
https://drive.google.com/uc?export=download&id=1povlq7HvjomVZVlmrWWYHwICQT6kP66p
https://drive.google.com/uc?export=download&id=1ipqGD8ET0K-a-awB4gLSdSU7IrT_3Rc0 - Navigate to https://tagmanager.google.com to select your account and container
- Select the NON-server container
- Click "Templates"
- Beside 'Tag Templates' click "New"
- Click the menu with the three dots at the top right.
- Click "Import", and select the Purchase event template downloaded above.
- Click the checkbox to Agree to Terms of Service.
- Click "Save"
- Click the X to close the editor.
- Click "New"
- Click the menu with the three dots at the top right.
- Click "Import" and select the All Pages template downloaded above.
- Click the checkbox to agree to the Terms of Service.
- Click "Save"
- Click the X to close the Template Editor.
Create tags
- Click "Tags"
- Click "New"
- Click the tag icon to choose a tag.
-
Click "ProfitMetrics - Universal Integration - All Pages"
-
Click the "1A2B3C4D5E6F7G8H" field.
-
Paste the Public ID found in ProfitMetrics > Websites
-
Click the trigger icon to choose a trigger.
-
Click "DOM Ready". You can also add any event that is specific to your Cookie Consent update.
- Click "Save"
-
Click "Save"
-
Click "New"
-
Click the tag icon to choose a tag.
-
Click "ProfitMetrics - Universal Integration - Purchase"
-
Click the "1A2B3C4D5E6F7G8H" field.
-
Paste the Public ID found in ProfitMetrics > Websites
-
Click > beside "Additional Fields".
- Use the Block icon to search for any variables from this section that can be specified. Any field that does not have a corresponding variable, please leave blank.
- Click the trigger icon to choose a trigger
-
Select the Purchase event. If it isn't clear which event is correct, click the 'i' for more information, and identify which purchase trigger is already in use, and use that one. It will likely be a Custom Event like this:
-
Click "Save"
-
Click "Save"
Create document.cookie variable
- Click on "Variables", then click "New"
-
Click the block to select the variable type.
-
Click "JavaScript Variable."
-
Click the text box for Global Variable Name
-
Type "document.cookie"
-
Copy/Paste the name "document.cookie" from the Global Variable name to the variable name at the top left
- Click "Save"
Once those changes are completed, your basic setup should be complete!
Verify changes by publishing and waiting for an order, or by placing a test order in preview (knowledge base article pending)