adjust / web_sdk

40 stars 25 forks source link

Tracking Link adjust_referrer query param missing #9

Closed alexlemons closed 4 years ago

alexlemons commented 4 years ago

Hi,

When using tracking links, our tracking for the referrer is lost and events show up instead as organic. We would expect a query string to be appended to the redirect url - something like ?adjust_referrer=1234 - that the web_sdk will use on initialisation, but this seems to be missing.

For example - https://app.adjust.com/x1s01s2?redirect=https%3A%2F%2Fwww.traderepublic.com%2Fde-de%2F redirects to 'https://www.traderepublic.com/de-de/'.

I can't see any parameter when using curl either:

$ curl 'https://app.adjust.com/x1s01s2?redirect=https://www.traderepublic.com/de-de/' -I
HTTP/1.1 302 Found
content-type: text/html; charset=utf-8
location: https://www.traderepublic.com/de-de/
set-cookie: 94fe5d0296e873892a6511645b0c39c3=cX5TeqwSMgtdR; Path=/; Domain=adjust.com; Max-Age=2
set-cookie: 94fe5d0296e873892a6511645b0c39c3=cX5TeqwSMgtdR; Path=/; Domain=adjust.io; Max-Age=2
set-cookie: 94fe5d0296e873892a6511645b0c39c3=cX5TeqwSMgtdR; Path=/; Domain=adj.st; Max-Age=2
date: Thu, 25 Jun 2020 14:18:34 GMT
connection: close
X-Robots-Tag: noindex

Could you help us here?

alexlemons commented 4 years ago

Solved:

The redirect url in our tracking link was incorrect. It must match the base_url exactly. In our case https://traderepublic.com not https://www.traderepublic.com