Mobile app version of vmapp.org
Login or Join
Pope3001725

: Google Analytics goal I need help with setting up Google Analytics Goal. Actually I have set it up but I have problem connecting the site with the goal. I have two optional goals - destination

@Pope3001725

Posted in: #GoogleAnalytics

I need help with setting up Google Analytics Goal. Actually I have set it up but I have problem connecting the site with the goal. I have two optional goals - destination and event. Event goal is supposed fire when a contact form is submitted. The destination form is is exactly the same as a goal but it is fired when redirect url is visited. This url is provided after successful form submission so I think this is the better one.

I have set it up in the GA admin panel but I don't know what to do next. When adding event tracking I need to add the snippet of code in the anchor as an attribute. What should I do now?

Thanks

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pope3001725

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

You'll need to add an onclick push event to the submit button of your contact form.

For example, something like:-

onClick="_gaq.push(['_trackEvent', 'contact', 'enquiry', 'contact form',, false]);"


As an example, this in context would be along the lines of:-

<input id=”contact-submit” class=”button” type=”submit” value=”Submit” onClick="_gaq.push(['_trackEvent', 'contact', 'enquiry', 'contact form',, false]);">


Then, in Google Analytics, you'll need to add the event to correspond with the code used above.


Open up the profile you wish to set up the goal in.
Click the gear icon in the upper right corner of the Google Analytics interface.
Click the Goals tab (in the sub-navigation just below where your Profile is listed)
Choose the Goal Set you wish to add the event to.
Name your goal and select the Event radio button.
Populate the following goal details:


Category | that matches | contact
Action | that matches | enquiry
Label | that matches | contact form
Value | that matches |


If you’ve added a Value in step 1, leave the “Use the actual Event Value” radio button selected.
Click “Save” and you’re ready to go!

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme