LeadBooster chat tracking with GTM or GA

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

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

 

Thanks in advance!

1
1 votes

Submitted · Last Updated

Comments

  • Boris Tsibelman
    Boris Tsibelman Member Posts: 828 VERIFIED MEMBER
    1000 Comments Third Anniversary 5 Likes First Answer
    edited October 2021 #2

    At the moment, no. 

  • Jussimir Pasold
    Jussimir Pasold Member Posts: 8 VERIFIED MEMBER
    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 VERIFIED MEMBER
    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>
    


This discussion has been closed.