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.