Search affected by Google Tag Manger code - responsive Webhelp output

Post here questions and problems related to editing and publishing DITA content.
cparrott
Posts: 10
Joined: Mon Oct 21, 2019 7:06 pm

Search affected by Google Tag Manger code - responsive Webhelp output

Post by cparrott »

Hi there,

I've added Google Tag Manager code to my responsive webhelp output via transform parameters. I'm able to add the code just fine and it runs in the background of my output, but it also seems to disable the search on my output--when I try to search for anything, the results are blank, and when I inspect the code I see that the div class="fakeResult" and "fakeText".

I'm attaching screenshots of:
1) The parameters I have set referencing the GTM code;
2) How the search looks after I add the GTM code; and
3) What I see when I inspect the search code.

Have you seen this before? Any thoughts on what I'm doing wrong? Happy to provide more info if it would be helpful.

Thank you,
Claire
parameters.png
parameters.png (37.1 KiB) Viewed 1334 times
search-front-end.png
search-front-end.png (4.33 KiB) Viewed 1334 times
search-back-end.png
search-back-end.png (14.42 KiB) Viewed 1334 times
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Search affected by Google Tag Manger code - responsive Webhelp output

Post by radu_pisoi »

Hi,
cparrott wrote: Wed Feb 19, 2020 6:46 pm Have you seen this before? Any thoughts on what I'm doing wrong? Happy to provide more info if it would be helpful.
No, we have not encountered this problem yet.

Do you encounter the same issue if you remove the Google Tag Manager code? You can easily to this by duplicating the transformation scenario and remove the webhelp.fragment parameters.

When Google Tag Manager code is enabled, could you tell us if there is any message in the browser's console (F12 to debug).
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
cparrott
Posts: 10
Joined: Mon Oct 21, 2019 7:06 pm

Re: Search affected by Google Tag Manger code - responsive Webhelp output

Post by cparrott »

Hi there,

The issue goes away if I duplicate the transform and remove the Google Tag Manager code.

After debugging, I see that I do have multiple errors--attaching a screenshot of them here. The lines of code they refer to are the GTM code lines. These errors appear before I even perform a search, so it seems like the issue might be with the GTM code.

Let me know if you have any insight into what these errors indicat
GTMdebugerror.PNG
GTMdebugerror.PNG (70.55 KiB) Viewed 1286 times
e!

Thank you,
Claire
Post Reply