LeadBooster chat tracking with GTM or GA

Sampsa Hakakoski
Sampsa Hakakoski Member Posts: 1
edited July 2022 in Apps and Integrations #1

Is it possible to track LeadBooster chat interactions with Google Tag Manager or Google Analytics?


Thanks in advance!


  • Boris Tsibelman
    Boris Tsibelman Member Posts: 847
    5 Likes First Anniversary First Answer Combo Breaker
    edited October 2021 #2

    At the moment, no. 

  • Jussimir Pasold
    Jussimir Pasold Member Posts: 8
    First Comment

    That would be really important, is impossible to run paid traffic to a landing page with Pipedrive Leadbooster without tracking the conversions.. without this feature it makes no sense for any business that invest in paid traffic to use Pipedrive Leadbooster

  • RI
    RI Member Posts: 15
    First Comment

    It IS possible but it requires editing the Leadbooster script so it requires knowing how to code JavaScript.

    Someone who knows JavaScript can edit the script to manually push an event to the GTM datalayer, or to send an event to Google Ads, or some other tracking service. You may need to find a coder to help.

    As a starting point, the below code will push events to Plausible Analytics. For sending events to GTM you need to use dataLayer.push as explained here: https://www.analyticsmania.com/post/datalayer-push/ Maybe if you send the below example, your LeadBooster script, and that link to a developer, they can make the needed changes for you.

    <script>window.pipedriveLeadboosterConfig = {
        base: 'leadbooster-chat.pipedrive.com',
        companyId: YOUR COMPANY ID HERE!!!,
        playbookUuid: YOUR ID HERE!!!,
        version: 2
    (function () {
        var w = window;
        if (w.LeadBooster) {
            console.warn('LeadBooster already exists');
        } else {
            w.LeadBooster = {
                q: [], on: function (n, h) {
                    this.q.push({ t: 'o', n: n, h: h });
                }, trigger: function (n) {
                    this.q.push({ t: 't', n: n });
            w.LeadBooster.on('conversationEnded', function(data) {
                if (data.qualified) {
                } else {
            w.LeadBooster.on('opened', function(data) {
            w.LeadBooster.on('closed', function(data) {
    })();</script><script src="https://leadbooster-chat.pipedrive.com/assets/loader.js" async></script>