How To Track The Initial Traffic Source with GTM (feat. Julius Fed from AnalyticsMania)

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 56

  • @mcbuzzvideo
    @mcbuzzvideo 6 ปีที่แล้ว +3

    Excellent tutorial. Thanks for the guest post, Julius! AnalyticsMania rocks.

  • @bradmathias7513
    @bradmathias7513 3 ปีที่แล้ว

    This was really helpful. You really put it out there in a simplified way. I appreciate it! Thank you.

  • @khusravsultanov7333
    @khusravsultanov7333 6 ปีที่แล้ว

    One of the best channels about digital marketing. And I like your new format where you invite guests from other popular Digital Marketing channels and websites.
    I have a recommendation for the next video. You could make a video about conversion linkers, best use of them and etc.
    Still I didn't find much useful videos about conversion linker.

  • @devan18ful
    @devan18ful 4 ปีที่แล้ว

    youre awesome julian, you deserve a lot more subscribers...thanks for creating this valuable content..

  • @illsaneful
    @illsaneful 3 ปีที่แล้ว

    Man... this is great! You got my sub for sure!

  • @Getfoundmadison
    @Getfoundmadison 6 ปีที่แล้ว

    Hugely valuable! Thank you for making this. Can't wait to try it out.

  • @Urbanpixel-io
    @Urbanpixel-io 4 ปีที่แล้ว

    Best Channel on TH-cam!

  • @Babyfasty
    @Babyfasty 6 ปีที่แล้ว

    Ahah I thought video would show us how to keep original referrer when there is multiple redirection. Btw great video, explanation was really clear

  • @afshinzandi8776
    @afshinzandi8776 6 ปีที่แล้ว

    Nice one, thanks Julius

  • @ClayArnall
    @ClayArnall 5 ปีที่แล้ว

    awesome, thanks

  • @VincentVelema
    @VincentVelema 6 ปีที่แล้ว +2

    I wouldn't mind this had a bit of regex code added to the tutorial to clean up that data, recieved in GTM or Analytics :))) Otherwise, nice one!

  • @rubening
    @rubening 5 ปีที่แล้ว

    Hi. Does this script still work? I followed along exactly and only am getting "utmccn=(not set)" as the cookie value for initialTrafficSource during the part at 4:35.

  • @dmitryz2320
    @dmitryz2320 3 ปีที่แล้ว +1

    Does it work now? Is there an updated method?

  • @IslamMuhammad
    @IslamMuhammad 6 ปีที่แล้ว

    Thanks for the video. My question here is why we used user scope custom dimension and not a session scope one?

    • @AnalyticsMania
      @AnalyticsMania 6 ปีที่แล้ว +1

      User scoped dimensions are also visible in the User Explorer (when you open the visitor's profile). It's useful to see that data there too (if you want to dig deeper on an individual level).

    • @IslamMuhammad
      @IslamMuhammad 6 ปีที่แล้ว

      But can you say that if a user came once to your website from google organic search this should still be the same traffic source for him in all his consecutive sessions even if he come again later directly or using paid search ads ? As we are using a user scoped custom dimension and not session scoped one ?!

    • @AnalyticsMania
      @AnalyticsMania 6 ปีที่แล้ว +1

      Yes, the idea here is that the initialTrafficSource is the data point that should never change in all future sessions. Of course, since this solution is cookie based and cookies can be deleted, that value might change for some users. But the main goal of this dimension is to have that very first traffic source of when the visitor visited your website for the first time.

    • @IslamMuhammad
      @IslamMuhammad 6 ปีที่แล้ว

      Ahhaaa, now I get what I misunderstood the purpose of that solution, I thought it can be a dynamic session based value that is being changed for each traffic source that drives user to the site, so it would take the values: 1) Direct, 2) Organic Search , 3)Paid Search in case the user came 3 times using those 3 different traffic sources using the ones above. But as you explained if that solution is meant to be deciding the initial source that drove the user to your website then it would be only different from GA default attribution method in that it isn't biased towards Paid Search

  • @PhilipeCastillo
    @PhilipeCastillo 5 ปีที่แล้ว

    Really usefull setup. I just have a huge issue with source/medium reports. I create a custom dimesion tracking the _ga cooki value and i want to generate a manual attribution model with R the thing is "we test with the same cookie visit the same site from different referrers ex: 1rst SEO Google 2nd Direct and 3rd Facebook, but when we make another visit from SEO it still register a visti from facebook." btw we use angular...

  • @dimplegupta2633
    @dimplegupta2633 4 ปีที่แล้ว

    hy i am just not able to see the tag created and all in my analytics .ie. the source/medium part you have explained i did everything as per the video i am able to see it in tag manager but not in analytics. what will be the issue can you let me know

  • @slyasassin
    @slyasassin 2 ปีที่แล้ว

    How do you do this with GA4? It requires the user property name. Do I have to send that iwth the GA Configuration Tag?

  • @Guy3008
    @Guy3008 5 ปีที่แล้ว

    Thank you! I would like to find out how my affiliates drive traffic to their landing page. What would the best way to do that?
    Can GTM help with that?

  • @bassamjumaa4644
    @bassamjumaa4644 6 ปีที่แล้ว

    That's good, but it has a significant drawback! When a user comes first from an Adwords campaign the initial source would be Google/CPC. However, we reacquire the user again using another campaign after a month or so through a Facebook campaign and the ad convince him to buy but no conversion is done yet. next day he came to the site directly and purchaced an item.
    In this scenario, we lost the actual campaign should receive the credit (Facebook) where the initial source is Google/CPC and the last click source was direct.
    I think Google has solved this issue already by providing the attribution models, just go to GA, and browse Attribution tab and Model Comparison Tool will give you all what you need to know the first, last, and position based sources.

    • @MeasureSchool
      @MeasureSchool  6 ปีที่แล้ว

      we don't loose data. It's still in the Multi Channel Reports, as you stated. What this method does is write it into a Custom Dimension. You can use this not only in the conversion reports, but also for other data points as well.

  • @BriceHolmes
    @BriceHolmes 4 ปีที่แล้ว

    Is this possible / necessary in Google Analytics 4? I've had this working on an old setup, but am using GA4 in a new environment and can't figure out the setup. Thanks for your great video tutorials!

    • @MeasureSchool
      @MeasureSchool  4 ปีที่แล้ว

      yes, still possible, also with GA4

    • @HenryQHe
      @HenryQHe 3 ปีที่แล้ว

      @@MeasureSchool For GA4, do we use the GA4 Configuration Tag and set the User Property to the initialTrafficSource variable? Asking because Custom Dimensions is not a default parameter for the GA4 Configuration Tag. Thanks

    • @najaschuller6030
      @najaschuller6030 3 ปีที่แล้ว

      @@MeasureSchool Thanks for the super tutorial. We have set up the Initial Traffic Source with the GTM in the GA4 Config Tag and the User Parameter as a Custom Dimension. PageView is set up as a separate event because of SPA. Now all Facebook traffic from paid campaigns with utm tracking in GA4 is assigned to medium = referral. What could be the reason for this? Is there any solution for this? Thanks in advance for your advice.

  • @kelvinmunene237
    @kelvinmunene237 ปีที่แล้ว

    is this still valid with GA4 analytics

  • @nunachiparu
    @nunachiparu ปีที่แล้ว

    Can anyone please help me?? This code is working but while debuging from tag assistant. It should be tag assistant no??

  • @waqaswakeel
    @waqaswakeel 4 ปีที่แล้ว

    Cookies are not added on IP host website any solution for this

  • @duckhai2607
    @duckhai2607 6 ปีที่แล้ว

    Hello! I can not see the custom metrics line of the assistant tag. can you help me

    • @AnalyticsMania
      @AnalyticsMania 6 ปีที่แล้ว

      Open the Preview and Debug mode, click the GA Pageview tag and check there whether the Custom Dimension is sent to GA, after all.

  • @webwoman728
    @webwoman728 5 ปีที่แล้ว

    Hi there, I did all as you showed in video, but in GTM Helper I do not see the custom dimension - only URL in page view request. It also does not track the Initial Traffic Source even after 48 hrs. What could be the problem? Thank you

    • @MeasureSchool
      @MeasureSchool  5 ปีที่แล้ว

      hard to say from what you've told... maybe your tag is misconfigured

  • @jhay-rdajalos1305
    @jhay-rdajalos1305 4 ปีที่แล้ว

    I followed the whole instruction but my analytics does not show the count in initial traffic source. When I view in the application and then cookie it is there but in the analytics there is no data of the initial traffic source. Please help

    • @MeasureSchool
      @MeasureSchool  4 ปีที่แล้ว

      not quite sure how I can help with the information given

  • @jjfossey
    @jjfossey 5 ปีที่แล้ว

    Why do I need to create the GA Pageview tag that fires on all pages? When I do that and preview my changes, the Google Tag Assistant throws an error saying, "Same web property ID is tracked twice." and it shows two Pageview requests for a page. Of course, removing the tag resolves the issue, so not sure if I missed something or if the GA Pageview tag is really needed. Any suggestions?

    • @MeasureSchool
      @MeasureSchool  5 ปีที่แล้ว

      you probably have a GA Pageview Tag already installed? Or you have a hardcoded version on your page (possibly) injected through a plugin?

    • @jjfossey
      @jjfossey 5 ปีที่แล้ว

      @@MeasureSchool Thank you for your reply. Yes, that is the case, so then I don't need to create the GA Page view tag seen in the video?

  • @canyurdakul5276
    @canyurdakul5276 6 ปีที่แล้ว

    Great video for first traffic source! With this video , I know user's first and last traffic source. How can ı see users's all source / medium path (non-converter path) Actually I want to see top conversion path report as in google analytics but for none converter users?

    • @AnalyticsMania
      @AnalyticsMania 6 ปีที่แล้ว

      Unfortunately, this video does not provide this solution. In fact, this would require a much more complex script to do. Currently, I'm not aware of such solutions.

    • @MeasureSchool
      @MeasureSchool  6 ปีที่แล้ว +1

      Check my source cookie solution. It writes all the sources into a cookie and you theoretically could build a report out of that info th-cam.com/video/x2pR4bCW7Mg/w-d-xo.html

    • @canyurdakul5276
      @canyurdakul5276 6 ปีที่แล้ว

      Thanks for your help, ı will try.

  • @duckhai2607
    @duckhai2607 6 ปีที่แล้ว

    Hello. After I add the code and search from google, the value that the initialtrafficesouce tag returns is always 'utmcsr = (direct) | utmcmd = (none) | utmccn = (not set)'. I searched for keywords and clicked from google

    • @AnalyticsMania
      @AnalyticsMania 6 ปีที่แล้ว +1

      I recommend deleting the cookie and repeating the action once again. My guess is that before landing from the google search you already had a cookie by directly landing on your website.

    • @mtnsidemediaco
      @mtnsidemediaco 4 ปีที่แล้ว

      @@AnalyticsMania
      Looks like this may be hardcoded in the script
      (function(document) {
      var referrer = document.referrer;
      var gaReferral = {
      'utmcsr': '(direct)',
      'utmcmd': '(none)',
      'utmccn': '(not set)'
      };
      Please advise

  • @sitikanthasahoo8339
    @sitikanthasahoo8339 6 ปีที่แล้ว

    Hello sir,
    .
    . Actually I want to know how to track back to the person who bought from my affiliate link.
    Is it possible??.
    .your answer will be you great concern

    • @MeasureSchool
      @MeasureSchool  6 ปีที่แล้ว

      doable, but it depends on the capabilities of your affiliate program or partner. There is not one solution

    • @sitikanthasahoo8339
      @sitikanthasahoo8339 6 ปีที่แล้ว

      @@MeasureSchool
      Sir,
      Thank-you for your time
      Sir can I get any suggestions
      Or any video of yours related to this problem

  • @onetopsolution1324
    @onetopsolution1324 5 ปีที่แล้ว

    Tag manager show in variabiles > 1st Party Cookie - undefined undefined - Why? :(

    • @AnalyticsMania
      @AnalyticsMania 5 ปีที่แล้ว +1

      Most likely a grammar error in the Cookie Variable's name. It's case sensitive.

    • @TheChris2627
      @TheChris2627 5 ปีที่แล้ว

      There is a checkbox URI Decoded Cookie - Leave it Checked on!

    • @AnalyticsMania
      @AnalyticsMania 5 ปีที่แล้ว +1

      @@TheChris2627 This does not affect the undefined case. URI decode does decodes the cookie (e.g. replaces %20 with empty spaces)