1
votes

I have an issue with the GA /collect endpoint:

https://www.google-analytics.com/collect?cid=1234&t=pageview&dp=%2Fblog&v=1&tid=UA-XXXXXX-1&aip=1&dr=https%3A%2F%2Fgoogle.com

Where:

  • cid = 1234
  • t = pageview
  • dp = /blog
  • v = 1
  • tid = UA-XXXXXX-1 (replaced by my own)
  • aip = 1
  • dr = https://google.com

The /debug endpoint gives me "valid": true,

Everything works fine (I see the events on GA) except the dr param, I can't find any trace of it.

I don't have any referral exclusion on the property.

Do you have any idea what I am doing wrong, and how can I get the dr param working?

Thanks a lot

1

1 Answers

0
votes

dr parameter is document referrer used by Analytics to detect the source / medium. So in your case the hit will be attributed to the Organic Search channel.

I tried it:

enter image description here