• I want to track clicks on a contact form send button. Since the contact form is on the last page, I’ve placed the conversion code in the footer.php file (in the line above the end <body> tag), but I don’t know where to place the onclick code snippet.
    google states ‘If you don’t include an ‘onClick’ tag in your HTML, no conversions will be registered.’

    this is the tag (with generic entry data)
    <button onclick=”goog_report_conversion(‘https://example.com/your-link&#8217;)” href=”https://example.com/your-link”>Download now!</button>

    …but I have no idea where to put it.
    Thanks in advance,
    Jon

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘where to add onclick command code in 2017 theme’ is closed to new replies.