WordPress.org

Ready to get started?Download WordPress

Forums

WordPress-to-lead for Salesforce CRM
[resolved] Add Analytics Event to Submit Button (5 posts)

  1. tcink
    Member
    Posted 2 years ago #

    Hi,

    We want to track everyone who submits a form as an event in Google Analytics. Can anyone suggest where I need to put the Analytics code to make this possible?

    Cheers
    Tom

    http://wordpress.org/extend/plugins/salesforce-wordpress-to-lead/

    [ Please do not bump, it's not permitted here. ]

  2. Nick Ciske
    Member
    Plugin Author

    Posted 2 years ago #

    So you want to run some JavaScript, post submit (e.g. when the thank you message is shown)?

  3. tcink
    Member
    Posted 1 year ago #

    Yes, I believe so.

  4. Nick Ciske
    Member
    Plugin Author

    Posted 1 year ago #

    You can use a plugin that allows you to add JS to a specific page and use that page as your thank you page.

    I've added it to the wish list for the plugin itself (to make this easier, it may be a hook/filter, or be a text box -- I'm not sure yet).

  5. Nick Ciske
    Member
    Plugin Author

    Posted 1 year ago #

    Or I suppose you could just put it directly in the thank you page using the HTML editor...

    Here's the plugin I was thinking of:
    http://wordpress.org/extend/plugins/insert-javascript-css/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.