[Plugin: Contact Form 7] Google Analytics goals using the using the _trackPageview function
-
I need to track how many inquiries comes from the website through the contact form.
Searching through forums I could only find a hack how to disable the Ajax and send the user to a “thank you” page instead.
Google Analytics, however, says Javascript events can be tracked even if the user is not sent to a “thank you” page:
https://www.google.com/support/googleanalytics/bin/answer.py?answer=55521
By using the _trackPageview function, you can assign a page filename to any Javascript event.
To track an event, call _trackPageview() with an argument specifying a name for the event. For example:
pageTracker._trackPageview(“/homepage/link1”);
HTML Code Examples
The following illustrates how to log an onClick event:
Trouble is I have no clue where this code would be added and exactly how it would look. Any help appreciated!!
- The topic ‘[Plugin: Contact Form 7] Google Analytics goals using the using the _trackPageview function’ is closed to new replies.