• Arjun

    Member
    13 June 2023 at 10:37 pm

    Without being able to see the actual code and the webpage, it’s quite challenging to determine the specific issue. However, the problem may stem from an incorrect implementation of the function or script that assigns the index for each line item. It’s possible that your implementation doesn’t allow the index to increment for each successive line item, resulting in the same index being assigned to each one. One possible solution is to ensure that your indexing function or script increments properly for each line item. Additionally, you should verify that the element you’re assigning the index to exists and is correctly identified in your function. Make sure to always test your code and check results after modifying. If you’re still having trouble, consider asking for help in a coding or Google Tag Manager forum, where you can provide your specific code for better assistance.