Show custom dimensions values in google analyticsHow to set custom dimension with Google AnalyticsDoes Google Analytics support real time reporting for custom dimensions?Tag Manager / Analytics not seeing custom dimension?How to use Google Analytics and Google Tag Manager 2 on a local address?Google Analytics Multiple Custom DimensionMy Custom Dimensions & Metrics don't show in Google Analytics?Custom Dimension value alway showing up as not setTracking WordPress tags in Google Analytics with Google Tag ManagerHow can we pass checkout step to a custom dimension in Google Analytics?How to set custom dimensions in Google Analytics

Stack data structure in python 3

What is the correct way for pilots to say times?

Is "montäglich" commonly used?

Idiomatic way to distinguish two zero-arg constructors

What latex template to use when you do not know the journal you are going to submit

"Startup" working hours - is it normal to be asked to work 11 hours/ day?

UK visitors visa needed fast for badly injured family member

Can the fact that Trump issued a Do Not Testify be used in impeachment articles?

What does this docker log entry mean?

Buddha Hinduism

San Francisco To Hyderabad via Hong Kong with 15 hours layover, Do I need to to submit a Pre-arrival Registration for hotel stay in HKG transit area?

Stalemate situation with all pieces on the board

Integration of three dimensional function gives wrong answer!

What are the minimum element requirements for a star?

Beautiful planar geometry theorems not encountered in high school

How to exit read-only mode

Is it possible to unwrap genus-0 mesh so each vert has one and only unique uv?

the mystery of the digitally disadvantaged ancestors

Does toddler keep hands around private parts?

What should I tell a customer when my co-worker fails to show up to a meeting?

Can I use other Schengen countries as first port of entry & last port of exit using Type D Visa?

Cage Length (Rear Derallieur) and Total Capacity

What was the deal with the news stories about rats in "Joker"?

Search Console unable to access website after DNS change



Show custom dimensions values in google analytics


How to set custom dimension with Google AnalyticsDoes Google Analytics support real time reporting for custom dimensions?Tag Manager / Analytics not seeing custom dimension?How to use Google Analytics and Google Tag Manager 2 on a local address?Google Analytics Multiple Custom DimensionMy Custom Dimensions & Metrics don't show in Google Analytics?Custom Dimension value alway showing up as not setTracking WordPress tags in Google Analytics with Google Tag ManagerHow can we pass checkout step to a custom dimension in Google Analytics?How to set custom dimensions in Google Analytics






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0


















My goal is to have user email address in google analytics reports so I can build custom reports for client.
For this, I added a custom dimensions "cdUserEmailAddress" under admin --> custom definitions --> custom dimensions
I set it's scope to session.



I set the following code in my page to add a test value but it does not add the value anywhere that I can find on google analytics dashboard.



<script>
window.dataLayer = window.dataLayer || [];
function gtag() dataLayer.push(arguments);
gtag('js', new Date());
dataLayer.push(
'cdUserEmailAddress': 'test@test.com',
'event': 'sessionUserLoggedIn'
);
gtag('config', 'UA-xxxx-x');
ga('create', 'UA-xxxx-x', 'auto');
ga('set', 'cdUserEmailAddress', 'test@test.com');
ga('send', 'pageview');
console.log('working 2');
</script>


This did not work.
I then went to Google TagManager (since one of the articles I read suggested I need to set that up too) and added a user data element there.
Pasted the auto generated code shown below but that did not help either.



<!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) )(window, document, 'script', 'dataLayer', 'GTM-xxx');</script>
<!-- End Google Tag Manager -->


What am I missing?
I looked everywhere for this test@test.com value ...by creating a custom report, under Behavior -> Site content --> AllPages...
I find it no where.



Please help
Thanks










share|improve this question































    0


















    My goal is to have user email address in google analytics reports so I can build custom reports for client.
    For this, I added a custom dimensions "cdUserEmailAddress" under admin --> custom definitions --> custom dimensions
    I set it's scope to session.



    I set the following code in my page to add a test value but it does not add the value anywhere that I can find on google analytics dashboard.



    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag() dataLayer.push(arguments);
    gtag('js', new Date());
    dataLayer.push(
    'cdUserEmailAddress': 'test@test.com',
    'event': 'sessionUserLoggedIn'
    );
    gtag('config', 'UA-xxxx-x');
    ga('create', 'UA-xxxx-x', 'auto');
    ga('set', 'cdUserEmailAddress', 'test@test.com');
    ga('send', 'pageview');
    console.log('working 2');
    </script>


    This did not work.
    I then went to Google TagManager (since one of the articles I read suggested I need to set that up too) and added a user data element there.
    Pasted the auto generated code shown below but that did not help either.



    <!-- Google Tag Manager -->
    <script>(function (w, d, s, l, i) )(window, document, 'script', 'dataLayer', 'GTM-xxx');</script>
    <!-- End Google Tag Manager -->


    What am I missing?
    I looked everywhere for this test@test.com value ...by creating a custom report, under Behavior -> Site content --> AllPages...
    I find it no where.



    Please help
    Thanks










    share|improve this question



























      0













      0









      0








      My goal is to have user email address in google analytics reports so I can build custom reports for client.
      For this, I added a custom dimensions "cdUserEmailAddress" under admin --> custom definitions --> custom dimensions
      I set it's scope to session.



      I set the following code in my page to add a test value but it does not add the value anywhere that I can find on google analytics dashboard.



      <script>
      window.dataLayer = window.dataLayer || [];
      function gtag() dataLayer.push(arguments);
      gtag('js', new Date());
      dataLayer.push(
      'cdUserEmailAddress': 'test@test.com',
      'event': 'sessionUserLoggedIn'
      );
      gtag('config', 'UA-xxxx-x');
      ga('create', 'UA-xxxx-x', 'auto');
      ga('set', 'cdUserEmailAddress', 'test@test.com');
      ga('send', 'pageview');
      console.log('working 2');
      </script>


      This did not work.
      I then went to Google TagManager (since one of the articles I read suggested I need to set that up too) and added a user data element there.
      Pasted the auto generated code shown below but that did not help either.



      <!-- Google Tag Manager -->
      <script>(function (w, d, s, l, i) )(window, document, 'script', 'dataLayer', 'GTM-xxx');</script>
      <!-- End Google Tag Manager -->


      What am I missing?
      I looked everywhere for this test@test.com value ...by creating a custom report, under Behavior -> Site content --> AllPages...
      I find it no where.



      Please help
      Thanks










      share|improve this question














      My goal is to have user email address in google analytics reports so I can build custom reports for client.
      For this, I added a custom dimensions "cdUserEmailAddress" under admin --> custom definitions --> custom dimensions
      I set it's scope to session.



      I set the following code in my page to add a test value but it does not add the value anywhere that I can find on google analytics dashboard.



      <script>
      window.dataLayer = window.dataLayer || [];
      function gtag() dataLayer.push(arguments);
      gtag('js', new Date());
      dataLayer.push(
      'cdUserEmailAddress': 'test@test.com',
      'event': 'sessionUserLoggedIn'
      );
      gtag('config', 'UA-xxxx-x');
      ga('create', 'UA-xxxx-x', 'auto');
      ga('set', 'cdUserEmailAddress', 'test@test.com');
      ga('send', 'pageview');
      console.log('working 2');
      </script>


      This did not work.
      I then went to Google TagManager (since one of the articles I read suggested I need to set that up too) and added a user data element there.
      Pasted the auto generated code shown below but that did not help either.



      <!-- Google Tag Manager -->
      <script>(function (w, d, s, l, i) )(window, document, 'script', 'dataLayer', 'GTM-xxx');</script>
      <!-- End Google Tag Manager -->


      What am I missing?
      I looked everywhere for this test@test.com value ...by creating a custom report, under Behavior -> Site content --> AllPages...
      I find it no where.



      Please help
      Thanks







      google-analytics google-analytics-userid






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 22:09









      DeepakDeepak

      1121 silver badge9 bronze badges




      1121 silver badge9 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          1



















          First of all, you should be aware, that sending email (or any other personally identifiable information) to Google Analytics is violating the terms of service.



          Newertheless, if you decide to go for any other custom data, the following should be changed in your code. Custom dimensions and metrics are not referenced by their names, but by their ID, which can be looked up in the administration panel of Google Analytics. For further details please check this detailed guide.



          So this part:



          ga('set', 'cdUserEmailAddress', 'test@test.com');


          Becomes:



          ga('set', 'dimension1', 'your non-pii data'); //update the number according to your settings


          Also, please note, that generally it's not suggested to send data to the same Analytics property directly from ga() calls and GTM, as you need to maintain your tracking settings in parallel, and you can easily send pageview twice, which is usually not desired.



          If you decide to go for GTM, then you need to set up a dataLayer variable, that references your key used in the dataLayer (cdUserEmailAddress in your present case), and you need to use this variable in the Universal Analytics settings, where you can set up custom dimension values, also by referring their IDs.






          share|improve this answer


























          • I made this change and it now shows up under behavior --> all pages...why would it not show up in my custom report? Where i have selected it as a part of my columns...are there any special rules around that?

            – Deepak
            Mar 29 at 13:47












          • It's hard to tell without knowing further details. Free version of Analytics has 48 hours SLA for processing your data. Are you using secondary dimension in the standard All pages report?

            – kgrg
            Mar 29 at 15:33











          • Thanks. I decided not to use this feature but you were right for the questions asked.

            – Deepak
            Mar 31 at 14:56












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407615%2fshow-custom-dimensions-values-in-google-analytics%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown


























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1



















          First of all, you should be aware, that sending email (or any other personally identifiable information) to Google Analytics is violating the terms of service.



          Newertheless, if you decide to go for any other custom data, the following should be changed in your code. Custom dimensions and metrics are not referenced by their names, but by their ID, which can be looked up in the administration panel of Google Analytics. For further details please check this detailed guide.



          So this part:



          ga('set', 'cdUserEmailAddress', 'test@test.com');


          Becomes:



          ga('set', 'dimension1', 'your non-pii data'); //update the number according to your settings


          Also, please note, that generally it's not suggested to send data to the same Analytics property directly from ga() calls and GTM, as you need to maintain your tracking settings in parallel, and you can easily send pageview twice, which is usually not desired.



          If you decide to go for GTM, then you need to set up a dataLayer variable, that references your key used in the dataLayer (cdUserEmailAddress in your present case), and you need to use this variable in the Universal Analytics settings, where you can set up custom dimension values, also by referring their IDs.






          share|improve this answer


























          • I made this change and it now shows up under behavior --> all pages...why would it not show up in my custom report? Where i have selected it as a part of my columns...are there any special rules around that?

            – Deepak
            Mar 29 at 13:47












          • It's hard to tell without knowing further details. Free version of Analytics has 48 hours SLA for processing your data. Are you using secondary dimension in the standard All pages report?

            – kgrg
            Mar 29 at 15:33











          • Thanks. I decided not to use this feature but you were right for the questions asked.

            – Deepak
            Mar 31 at 14:56















          1



















          First of all, you should be aware, that sending email (or any other personally identifiable information) to Google Analytics is violating the terms of service.



          Newertheless, if you decide to go for any other custom data, the following should be changed in your code. Custom dimensions and metrics are not referenced by their names, but by their ID, which can be looked up in the administration panel of Google Analytics. For further details please check this detailed guide.



          So this part:



          ga('set', 'cdUserEmailAddress', 'test@test.com');


          Becomes:



          ga('set', 'dimension1', 'your non-pii data'); //update the number according to your settings


          Also, please note, that generally it's not suggested to send data to the same Analytics property directly from ga() calls and GTM, as you need to maintain your tracking settings in parallel, and you can easily send pageview twice, which is usually not desired.



          If you decide to go for GTM, then you need to set up a dataLayer variable, that references your key used in the dataLayer (cdUserEmailAddress in your present case), and you need to use this variable in the Universal Analytics settings, where you can set up custom dimension values, also by referring their IDs.






          share|improve this answer


























          • I made this change and it now shows up under behavior --> all pages...why would it not show up in my custom report? Where i have selected it as a part of my columns...are there any special rules around that?

            – Deepak
            Mar 29 at 13:47












          • It's hard to tell without knowing further details. Free version of Analytics has 48 hours SLA for processing your data. Are you using secondary dimension in the standard All pages report?

            – kgrg
            Mar 29 at 15:33











          • Thanks. I decided not to use this feature but you were right for the questions asked.

            – Deepak
            Mar 31 at 14:56













          1















          1











          1









          First of all, you should be aware, that sending email (or any other personally identifiable information) to Google Analytics is violating the terms of service.



          Newertheless, if you decide to go for any other custom data, the following should be changed in your code. Custom dimensions and metrics are not referenced by their names, but by their ID, which can be looked up in the administration panel of Google Analytics. For further details please check this detailed guide.



          So this part:



          ga('set', 'cdUserEmailAddress', 'test@test.com');


          Becomes:



          ga('set', 'dimension1', 'your non-pii data'); //update the number according to your settings


          Also, please note, that generally it's not suggested to send data to the same Analytics property directly from ga() calls and GTM, as you need to maintain your tracking settings in parallel, and you can easily send pageview twice, which is usually not desired.



          If you decide to go for GTM, then you need to set up a dataLayer variable, that references your key used in the dataLayer (cdUserEmailAddress in your present case), and you need to use this variable in the Universal Analytics settings, where you can set up custom dimension values, also by referring their IDs.






          share|improve this answer














          First of all, you should be aware, that sending email (or any other personally identifiable information) to Google Analytics is violating the terms of service.



          Newertheless, if you decide to go for any other custom data, the following should be changed in your code. Custom dimensions and metrics are not referenced by their names, but by their ID, which can be looked up in the administration panel of Google Analytics. For further details please check this detailed guide.



          So this part:



          ga('set', 'cdUserEmailAddress', 'test@test.com');


          Becomes:



          ga('set', 'dimension1', 'your non-pii data'); //update the number according to your settings


          Also, please note, that generally it's not suggested to send data to the same Analytics property directly from ga() calls and GTM, as you need to maintain your tracking settings in parallel, and you can easily send pageview twice, which is usually not desired.



          If you decide to go for GTM, then you need to set up a dataLayer variable, that references your key used in the dataLayer (cdUserEmailAddress in your present case), and you need to use this variable in the Universal Analytics settings, where you can set up custom dimension values, also by referring their IDs.







          share|improve this answer













          share|improve this answer




          share|improve this answer










          answered Mar 29 at 7:42









          kgrgkgrg

          1,3171 gold badge8 silver badges12 bronze badges




          1,3171 gold badge8 silver badges12 bronze badges















          • I made this change and it now shows up under behavior --> all pages...why would it not show up in my custom report? Where i have selected it as a part of my columns...are there any special rules around that?

            – Deepak
            Mar 29 at 13:47












          • It's hard to tell without knowing further details. Free version of Analytics has 48 hours SLA for processing your data. Are you using secondary dimension in the standard All pages report?

            – kgrg
            Mar 29 at 15:33











          • Thanks. I decided not to use this feature but you were right for the questions asked.

            – Deepak
            Mar 31 at 14:56

















          • I made this change and it now shows up under behavior --> all pages...why would it not show up in my custom report? Where i have selected it as a part of my columns...are there any special rules around that?

            – Deepak
            Mar 29 at 13:47












          • It's hard to tell without knowing further details. Free version of Analytics has 48 hours SLA for processing your data. Are you using secondary dimension in the standard All pages report?

            – kgrg
            Mar 29 at 15:33











          • Thanks. I decided not to use this feature but you were right for the questions asked.

            – Deepak
            Mar 31 at 14:56
















          I made this change and it now shows up under behavior --> all pages...why would it not show up in my custom report? Where i have selected it as a part of my columns...are there any special rules around that?

          – Deepak
          Mar 29 at 13:47






          I made this change and it now shows up under behavior --> all pages...why would it not show up in my custom report? Where i have selected it as a part of my columns...are there any special rules around that?

          – Deepak
          Mar 29 at 13:47














          It's hard to tell without knowing further details. Free version of Analytics has 48 hours SLA for processing your data. Are you using secondary dimension in the standard All pages report?

          – kgrg
          Mar 29 at 15:33





          It's hard to tell without knowing further details. Free version of Analytics has 48 hours SLA for processing your data. Are you using secondary dimension in the standard All pages report?

          – kgrg
          Mar 29 at 15:33













          Thanks. I decided not to use this feature but you were right for the questions asked.

          – Deepak
          Mar 31 at 14:56





          Thanks. I decided not to use this feature but you were right for the questions asked.

          – Deepak
          Mar 31 at 14:56


















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407615%2fshow-custom-dimensions-values-in-google-analytics%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown









          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현