LeadBooster chat tracking with GTM or GA

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

 

Thanks in advance!

Comments

  • Boris Tsibelman
    Boris Tsibelman Community Driver Posts: 1,037
    1000 Comments Second Anniversary Combo Breaker Photogenic
    edited October 2021 #2

    At the moment, no. 

  • 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 Posts: 13
    10 Comments

    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) {
                    plausible('chat-lead')
                } else {
                    plausible("conversation-ended");
                }
            });
            w.LeadBooster.on('opened', function(data) {
                    plausible('chat-opened')
    
            });
            w.LeadBooster.on('closed', function(data) {
                plausible('chat-closed')
            });
        }
    })();</script><script src="https://leadbooster-chat.pipedrive.com/assets/loader.js" async></script>