GithubHelp home page GithubHelp logo

taneli-salonen1 / gtm-pardot-tracking-get-request Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 54 KB

A GTM template used for sending GET request analytics hits to Pardot. Needed for cookie consent configuration.

License: Apache License 2.0

Smarty 100.00%

gtm-pardot-tracking-get-request's Introduction

Pardot Tracking - GET Request

This Google Tag Manager template makes a GET request to the Pardot analytics endpoint when loaded. The parameters for the GET request are collected similarly as how they are collected by the original pd.js script.

The main need for this template and a GET request instead of the original script is for the purposes of aligning Pardot with the website's cookie consent and an external consent management solution. You can see more details here: https://help.salesforce.com/articleView?id=000313156&language=en_US&type=1&mode=1

Another, more experimental, use case would be to entirely replace the pd.js script which doesn't really allow any kind of configuration and might not be the most performant option to set up the tracking.

Usage:

  1. Copy the piAId, piCid (could be empty), and piHostname fields from the Pardot generated script to the template variable.
  2. Select if Pardot Tracking Opt-in is being used
  3. Set the desired opt-in setting: true or false to the PI Opt-in field

gtm-pardot-tracking-get-request's People

Contributors

taneli-salonen1 avatar

Watchers

 avatar

gtm-pardot-tracking-get-request's Issues

Template review feedback

Thanks for submitting a template to the gallery, there were a few issues in your template that needed to be resolved ahead of approving the template for the gallery.

  1. There is no homepage url mentioned in the metadata file. Please mention homepage url.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.