What is Trackingplan
The Trackingplan Way
Getting Started
Inside Trackingplan
How to…
Others
Installing Trackingplan for ssGTM
Before getting started with the installation, we recommend reaching out to our support team. This will help ensure everything is set up correctly from the start and help you avoid potential issues.
Watch this video for a step-by-step installation from scratch:
How to Install the Trackingplan Tag
The Trackingplan tag captures GA4 requests and collects messages from modified tags, sending all data to the Trackingplan server for monitoring.
You have 2 options: installing it from the Community Templates, or importing it manually using the .tpl file.
Manual Installation
Import the template into your SSGTM container
- Download the template from
Untitled
- In your SSGTM container, go to Templates → New → Import from file
- Select the downloaded template file
- Save
Create a new tag using the template:
- In your SSGTM container, go to Tags → New
- Select the Trackingplan template
- Add your Trackingplan ID
- Set appropriate trigger rules (typically "All Events”, “All Pages")
- Click Save
- And don’t forget to publish your container
How to modify the tags you want to monitor
This step should be done on all the templates you want to monitor with Trackingplan.
- Open the tag template (this works on any tag)
- Add the Trackingplan Snippet to the top of the template (see code below)
- Remove/Comment the original
sendHttpRequest
andsendHttpGet
methods. - Enable the Send/Receive message permission
- Save
- And don’t forget to publish your changes
Trackingplan Snippet
/* Trackingplan snippet to be included in on top of templates to be monitored by Trackingplan */
const sendHttpRequest = (url, options, body) => {
require('addEventCallback')(() => {
require('sendMessage')('tp_request', { url: url, body: body });
});
return require('sendHttpRequest')(url, options, body);
};
const sendHttpGet = function (url, options) {
require('addEventCallback')(() => {
require('sendMessage')('tp_request', { url: url });
});
return require('sendHttpGet')(url, options);
};
/* End of Trackingplan snippet */
How to debug & verify everything is running properly
To ensure everything is running properly, make sure to see the following in your preview mode:
- Each time a request is sent from one of your modified tags (1 in the image), there is one from Trackingplan happening in its payload (2 in the image).
- For each Incoming Request (3 in the image), there is a matching Trackingplan request (4 in the image).
← Previous
Next →