- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
In trying to use the built-in template for Turn (now Amobee) pixels, we were having trouble getting it to work as expected. Amobee's immediate advice was to abandon the template, but I didn't want to lose the benefits of a template, so I dug deeper. After some review of the template code, there's a minor fix that appears to make it work.
Using the base template, I was getting a pixel URL that looked like:
Instead of the expected:
Digging into the template, there's one line that reads:
u.data.base_url = (u.data.base_url || "//d.turn.com/r/dd/id/L21rdC8yNTcvY2lkLzI0OTE3MTg2L3QvMA/dpuid/") + u.data.acct + "/kv/";
I updated it to read:
u.data.base_url = (u.data.base_url || "//d.turn.com/r/dd/id/") + u.data.acct + "/kv/";
And everything magically started to work as expected, while still letting me use the UI to map new variables onto the URL and everything. Amobee even confirmed that the pixel output met their requirements after the fix.
Any chance of getting the built-in template updated with the fix? We use a lot of Amobee pixels, and it would be nice to not have to edit the template for each of them.
Copyright All Rights Reserved © 2008-2023