AWIN "Issues with the Server-to-Server Cookie"

Hi :slight_smile:

I have set up AWIN Server Tag (Stape).
In AWIN I get a “critical issue”, but I don’t understand the problem.

How can I set the Server-to-Server cookie, AWIN wants?

It says:
Issues with the Server-to-Server Cookie
The first-party cookie for Server-to-Server tracking could not be found. If this transaction came via an affiliate link, please make sure that the Server-to-Server cookie is set. (Ignore this if the transaction didn’t come via an affiliate link.)

The Data output looks something like this:

sread.php?tt=ss&tv=2&merchant=XXX&amount=25.21&ch=aw&vc=&cr=EUR&ref=XXXX&customeracquisition=&testmode=0&cks=&parts=DEFAULT%3A25.21&p1=gtm_s2s_stape&bd[0]=XXXX&bd[1]=XXXX

Screenshot of AWIN Tracking Diagnosis:

Cheers and thanks in advance!

You need to trigger Awin Tag with page_view selected on page_view events, so that click-id can be parsed from URL and set into a cookie.

My Tag looks like this:

I can see there is a outgoing request to set a cookie with {server_container_url} instead of a value.
Could that be connected to this topic and could that be a problem?

When you check this do you have the ‘awc’ parameter in the url? In other words do you have an awin click id that should be set in the cookie?
Have you checked if you have an awin_awc cookie?

I get an awc_cks cookie with the awc value

The server tag sets the ‘awin_awc’ cookie when triggered in page view mode and there is an ‘awc’ query in the page_location or page_referrer parameter.

So there may be a problem in your case:
a) no hit is coming to the server or the tag is not triggered in page view format when the url has awc parameter.

b) you are not using a first party subdomain and the cookie cannot be set because of this.

Somehow I could fix it by updating the old cHTML tags of the web container (now using the EdinCuturic tag templates as explained here: https://www.youtube.com/watch?v=YBVx8CX_fmQ)

So it seems like the problem was coming from the server tag, but the server tag was not getting the awin_awc value. Although I don’t know what the problem was.

Thank you!

You probably only have a cookie being sent with the web event, so you definitely need to sort this out and make sure the ‘awin_awc’ cookie is set (the web tag sets a different cookie).
Are you using a first party subdomain for sGTM?

I get the error again, so the problem still remains…

Yes, SST should be set up perfectly.

Here you can see, I get both cookies, and they are set reliably:

Should my AWIN tag have an outgoing request?

Everything looks normal from your screenshots. There should be no outgoing requests in the page_view work format, it just sets the cookie if there is awc in the url.
Can you check the outgoing hit on the conversion event?

HTTP request details

https://www.awin1.com/sread.php?tt=ss&tv=2&merchant=XXXX&amount=&ch=aw&vc=&cr=EUR&ref=1727262208094_17297799082131&customeracquisition=&testmode=0&cks=24666_1729771153_03640bf7ae7beea1e5b3c1ecd6c0f41d&p1=gtm_s2s_stape&bd[0]=XXX

When I debug it, it seems to work :smile:
There is a cks value which matches the cookie, and in AWIN the diagnosis is not missing a cookie.

For some reason though, now the commision group is missing, which I set in the Tag to DEFAULT: