- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
10-21-2019 04:48 AM - edited 10-21-2019 04:50 AM
Hi there
In order to track search results, there we are using a datalayer variable populated with the number of search results returned. This variable is mapped via tag toolbox to a custom dimension of the Google Analytics tag. All is fine if the value is greater than 0: The GA tag is populating the custom dimension as expected. However, if there are no search results, the value is 0 and the custom dimension is not populated at all. We would expect it to be populated with the value of "0".
Small issue with the datalayer variable: The values are set as integers, not strings.
If I understand this article here correctly, this should no longer be an issue however:
The GA tag template is of version tv:7110.20190129 and does contain the section
if (b[d] !== undefined && b[d] !== "") {
Before I advise devs to change the value to string (which was specified anyway), I would like to be sure that this is the issue.
Many thanks and kind regards...Jean-Marc
Solved! Go to Solution.
10-23-2019 07:38 AM
Copyright All Rights Reserved © 2008-2023