Why is my tag set as "Not Sent" in Web Companion?

Silver Contributor
Silver Contributor
Thanks
10 REPLIES 10

Why is my tag set as "Not Sent" in Web Companion?

Employee Emeritus
Hi Philippe, there could be many reasons. Would you mind telling us what tag? Any load rules that are applied to the tag and anything else that you can think of that might possibly affect it?

Why is my tag set as "Not Sent" in Web Companion?

Silver Contributor
Silver Contributor
Thanks Clint. What may cause this is the template I edited, to pass my variables. "u.data.v0="e1";u.data.v1=list_product_ids[0];" Can this be the cause? I didn't think the tag would refrain from firing in case of error, I thought it would fire and I would see the JS error in the browser dev tools. Thanks,

Why is my tag set as "Not Sent" in Web Companion?

Employee Emeritus
do you see the pixel fire in developer tools?

Why is my tag set as "Not Sent" in Web Companion?

Silver Contributor
Silver Contributor
it doesn't.

Why is my tag set as "Not Sent" in Web Companion?

Employee Emeritus
So then the answer to your original question is that it doesn't show in Web Companion because the tag is not firing. But, the better question now is, why isn't the tag firing?

Why is my tag set as "Not Sent" in Web Companion?

Tealium Employee
What is the UID of the tag in question? If you go to the Tags tab and look to the far right you will see the UID.

Why is my tag set as "Not Sent" in Web Companion?

Silver Contributor
Silver Contributor
UID=79. It does show in Web Companion, but its status is "Not sent" http://i.imgur.com/BTtPzMI.png Thanks

Why is my tag set as "Not Sent" in Web Companion?

Tealium Employee
Hi Philippe, thanks, now I understand the u.data.v1=list_product_ids[0]; you were referring to earlier. Ok, here is the issue. When the template is loaded the variable "list_product_ids" is defined but specifically array index [0] is not. So when u.data.v1 tries to grab a value, the undefined value throws a JS error. Because of this the code is stopped, the template is not able to be fully loaded, and therefore it cannot make the appropriate call. Here is what I would do: - Edit the Tag configuration - Expand "Advanced Settings" - Click "Manage Templates" - Two templates will show (one profile and one version), select one template from the drop-down and delete it (by clicking the Trash Can icon) then do the same for the other template - Close the Manage Templates modal - Click the Mapped Data Sources tab in the Tag Configurator - Select "list_product_ids" from the drop-down - Click "Select Destination" - When the new modal appears select "v1" - Save the change and then Apply/Finish the change The mapping will overwrite the default value of the template so that you don't have to manually edit the template. The mapping will also wait until the appropriate time to overwrite the value and only overwrite if the value exists. Give this a try and let me know if you have any questions.

Why is my tag set as "Not Sent" in Web Companion?

Silver Contributor
Silver Contributor
Thanks Dan! Sounds good, except I need to access the 1st ID in that list of IDs (and assign it to "v1"), that's why I was using the [0] index. My list_product_ids variable is in that form: ["111", "333", "555"] Any help much appreciated, that's the last key to my issue with that tag. Thanks!

Why is my tag set as "Not Sent" in Web Companion?

Tealium Employee
The mappings only allow you to pass the full array/string variable, not a subset of the variable. In your case, your best bet would be to: - Create a new Data Source, for example "first_product" - Create a new Set Data Value extension - Set "first_product" to JS Code of b.product_id[0] with a condition that product_id is defined - Map "first_product" to "v1" This first_product variable will contain the 1st product of the array and allow it to be sent. Let me know if that helps.
Public