Skip to main content

#GA Tracking Parameters0 debatiendo

Alexia Briand preguntó en #Email

Hi everyone ! 

 

When I was looking through GA, I realised I could not find the last tracked emails I recently sent. I did not change anything to my tracking and it used to work for a long time.

 

Here is an example of what my tracking looks like : 

utm_source=marketingcloud

utm_medium=email

utm_campaign=example-2024

utm_content=B2C

 

Did I miss an update about the way to track emails through Salesforce Marketing Cloud ? Or is there a problem with my tracking/with filling in my tags ?

 

Thank you for your help !

 

Alexia

 

#Email #Marketing Cloud #Email Marketing #Email Tracking #GA Tracking Parameters

2 respuestas
  1. 16 feb 2024, 05:05

    Hi Alexia,I believe Google has a processing delay of 24-48 hours for non real-time reports. Was your email send in that window? Otherwise would advice to do an end to end test:

    - set-up test journey / email and use your adress as recipient

    - when e-mail received , check by clicking on each button, on the landing page if url contains utm tagging ( in adress bar

    )- with multiple devices click on the url from the email

    - see if it pops up on GA real-time report ( make sure your companies ip is not excluded )

    - see why it works in test and not in production ( what is the difference in settings )

    - otherwise check the full url from above, and allign with your internal / external GA product owner why it isn’t coming through .

0/9000

Updating GA Tracking Parameters

We've got a Google tracking implemented on our parent business unit and want to add "utm_content" however am not sure of the correct syntax to apply to dynamically pull in the click through alias name as we've done with campaign name.

 

Here is our code today:

%%[

SET @source="sfmc"

SET @medium="email"

SET @campaign=UrlEncode(Concat(__AdditionalEmailAttribute1,":",listid),1,1)

SET @user=SHA256(emailaddr)

SET @wttsrc="email"

SET @wtmcid=UrlEncode(Concat("Email","|",__AdditionalEmailAttribute1,"|",listid),1,1)

SET @string=Concat("utm_source=",@source,"&utm_medium=",@medium, "&utm_content=",@content,"&utm_campaign=",@campaign,"&user_id=",@user,"&WT.tsrc=",@wttsrc,"&WT.mc_id=",@wtmcid) ]%%%%=v(@string)=%%

 

And here is what this should look like:

 

%%[

SET @source="sfmc"

SET @medium="email"

SET @campaign=UrlEncode(Concat(__AdditionalEmailAttribute1,":",listid),1,1)

SET @content="INSERT_VALUE_HERE"

SET @user=SHA256(emailaddr)

SET @wttsrc="email"

SET @wtmcid=UrlEncode(Concat("Email","|",__AdditionalEmailAttribute1,"|",listid),1,1)

SET @string=Concat("utm_source=",@source,"&utm_medium=",@medium, "&utm_content=",@content,"&utm_campaign=",@campaign,"&user_id=",@user,"&WT.tsrc=",@wttsrc,"&WT.mc_id=",@wtmcid) ]%%%%=v(@string)=%%

 

What is the correct syntax thats needed to replace 'INSERT_VALUE_HERE' to pull in our click name aliases automatically as we've done with campaign?

4 comentarios
  1. 28 feb 2019, 01:02

    I think you're implementing it completely incorrectly, so this is what I would do (you won't be able to track link alias or URL that way):

    1. Concat support and ask them to use this as the web connector string:

    utm_source=%%=v(@source)=%%&utm_medium=%%=v(@medium)=%%&utm_content=%%linkname%%&utm_campaign=%%=v(@campaign)=%%&user_id=%%=v(@user)=%%&WT.tsrc=%%=v(@wttsrc)=%%&WT.mc_id=%%=v(@wtmcid)=%%

    2. In your emails, use:

    %%[

    SET @source="sfmc"

    SET @medium="email"

    SET @campaign=UrlEncode(Concat(__AdditionalEmailAttribute1,":",listid),1,1)

    SET @user=SHA256(emailaddr)

    SET @wttsrc="email"

    SET @wtmcid=UrlEncode(Concat("Email","|",__AdditionalEmailAttribute1,"|",listid),1,1)

    ]%%

    That sets all the values for each variable except @content since that will populate with either the URL or the link alias of the link clicked.

    When doing a "tracking enabled" send (track all links) will automatically populate every link in your emails.

0/9000