<aside> 💡 Need to add a custom tracking code snippet or marketing tag to your Journey? Want to track conversions with a custom tool when your users reach a certain step in the Journey? This article will show you how!
</aside>
Navigate to the Journey builder, select the Journey where you want to add custom tracking, and find the "Add Custom Integration" section under the "Tracking" tab.
Follow the instructions below based on how you’d like your custom tag to appear on your Journey.
To make your code snippet show up on every Journey step, paste your custom tag or tracking snippet where it says // PASTE YOUR CUSTOM TAG HERE.
return function(stepName, workflowId, conditionalWorkflowId) {
gtag('event', stepName, {workflowId,conditionalWorkflowId});
gtag('set', 'user_data', {stepName});
fbq('trackCustom', stepName, {});
// PASTE YOUR CUSTOM TAG HERE
};
<aside> 💡 Make sure you've named the Journey step where you want the pixel to appear before continuing.
</aside>
To make your tracking tag or code snippet fire only on a specific page, use the following script with these modifications.
return function(stepName, workflowId, conditionalWorkflowId) {
gtag('event', stepName, {workflowId,conditionalWorkflowId});
gtag('set', 'user_data', {stepName});
fbq('trackCustom', stepName, {});
if(stepName === 'YOURSTEPNAME'){
//PASTE YOUR CUSTOM TAG CODE HERE
}
};