Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #302881

    Hi,

    Am confused by this problem: I’m trying to alter an onclick=”_gaq.push event, but can’t find the code to alter it, even though I see it in the page source/”View Page Source” of website browsers.

    In the Page Source I see (correctly):
    <h2 style="text-align: center; color: #000000;"><strong><em><a href="tel:123-xxx-xxxx" onclick="_gaq.push(['_trackEvent', 'Click-to-Call', 'dial', 'home-page-center']);">CALL (916) 624-9656</a></em></strong></h2>

    When I navigate to the text block in the Avia Layout Builder to try and edit it, I only get:
    <h2 style="text-align: center; color: #000000;"><strong><em><a href="tel:123-xxx-xxxx">CALL (123)-xxx-xxxx</a></em></strong></h2>

    Thoughts?

    Thanks,
    Eric

    • This topic was modified 10 years, 3 months ago by esotEric.
    #303331

    Hi esotEric!

    I replaced the “Textblock” element with a code block – it enables you to edit the raw html code and it won’t strip the onclick event code.

    Regards,
    Peter

    #303412

    Hi Peter! Great! I’ll use code block, instead of text block, with in-page Google Tags from now on. Thank you.

    Cheers,
    Eric

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Layout Builder Hiding Google onclick="_gaq.push code ?’ is closed to new replies.