Associating Authenticated Zendesk Users into Google Analytics

Répondu

5 Commentaires

  • Kyle Petsch
    Actions pour les commentaires Permalien

    I would be interested in learning more about what people are doing in this situation as well.

    0
  • Dan McDade
    Actions pour les commentaires Permalien

    For what it is worth, I tried to do this via passing the HelpCenter.user.id into a custom dimension but have not been able to get it working 

    https://support.zendesk.com/hc/en-us/community/posts/203460006-Help-Center-user-segmentation-using-Google-Analytics-custom-dimensions?page=1#community_comment_115003777428 

    1
  • Liri Raviv
    Actions pour les commentaires Permalien

    Have you figured this out by any chance? I'd like to do this too. 

    0
  • Tony Roma
    Actions pour les commentaires Permalien

    Elliott B. over at Zendesk Support pointed me in a direction that I worked out about a year ago.

    I inserted the following Ajax request above the $(document).ready(function() { line in the JS editor. We are now getting the user ID passed through to a custom dimension in GA.

    //Pass through Zendesk User ID to Google Analytics
    $.ajax({
    url: "https://**ZendeskSubdomain**/api/v2/users/me.json",
    type: 'GET',
    dataType: 'json',
    contentType: 'application/json',
    success: function (data) {
    ga('set', '**dimension#**', data.user.id);
    ga('send', 'event', 'NonEvent', '**User_ID_label**', data.user.id,
    {'nonInteraction': 1
    });
    },
    });

    Replace items between ** with your own parameters..

    0
  • Jennifer Rowe
    Actions pour les commentaires Permalien

    Hey Tony -- nice to see you! Thanks for helping out!

    1

Vous devez vous connecter pour laisser un commentaire.

Réalisé par Zendesk