Chaining click tags

30/11/2019

Chaining, or concatenating, URLs is necessary when you have more than one click tag URL but only have the option to enter a single URL string on a platform.

To chain a third-party click tag to a Facebook-provided click tag, append it to the "h=" parameter of the Facebook-provided click tag. Make sure that the third-party click tag is encoded so that each part of the URL is correctly interpreted.

Example of encoded chained click tag:

https://ad.atdmt.com/c/img;adv=000;ec=111;adv.a=222;c.a=333;s.a=444;p.a=555;a.a=666;cache=777;qpb=1;?h=http%3A%2F%2Fwww.3rdparty.com%2Fclick%3Fa%3D123%26b%3D456

How it appears decoded:

https://ad.atdmt.com/c/img;adv=000;ec=111;adv.a=222;c.a=333;s.a=444;p.a=555;a.a=666;cache=777;qpb=1;?h=http://www.3rdparty.com/click?a=123&b=456

Note: If the third-party click tag contains macros, you should not encode the macros.

Example of encoded chained click tags with unencoded macros:

https://ad.atdmt.com/c/img;adv=000;ec=111;adv.a=222;c.a=333;s.a=444;p.a=555;a.a=666;cache=777;qpb=1;?h=http%3A%2F%2Fwww.3rdparty.com%2Fclick%3Fa%3D{macro1}%26b%3D{macro2}

How it appears decoded:

https://ad.atdmt.com/c/img;adv=000;ec=111;adv.a=222;c.a=333;s.a=444;p.a=555;a.a=666;cache=777;qpb=1;?h=http://www.3rdparty.com/click?a={macro1}&b={macro2}

Learn more about preparing tags.

* Nguồn: Facebook