Setting up Goals in Analytics when no common 'order confirmation' type page
-
Hi
I'm working on a project/client and have asked them for the common url that shows whenever user finishes the purchase process so i cant set it up as a Goal in GA so we can track conversions etc
Since site is dynamically generated it does not have such a page.
Dev are suggesting setting up a new goal, generate a URL and script and they will append to a similar call.
Does this make sense/sound like it would work ? And is it quite easy to do that in Analytics ? Normally i just add a URL as a goal and jobs done, don't know about scripts etc !
Cheers
Dan
set up a new Goal and generate a URL and script and send that to us and we'll append this to a similar call we already did for this at your request originally
-
Thanks but no idea how to, what do i do just copy and paste the code in your above/most recent comment, change the word 'button' to something else (or add something else after it) like 'data-transaction-button'. Do i change every instance of 'data-paypal-button' in above script to 'data-transaction-button' too ?
Then i just email it to dev and ask them to add it to an external file on the site ?
What about the code in your first comment ? (which i had already emailed the dev team) does that need to be done first before code in your most recent post ? And how and where does one fire an event in javascript ?
Pls be aware i havn't got any site backend access, i've just been advising dev what i need done so i can track conversions etc but they have come back with a massive quote for that so if i can do myself great but have no dev or code experience
Really appreciate you taking the time to comment/help
-
That's a joke.
do it your self$("input[data-paypal-button]").click(function () {
_gaq.push(['_trackEvent', 'PayPal', 'Button', 'domain.com.au', 5])
})In the above code, all you need to do is add an attribute to the button, then include the script in a external file, job done
Where "data-paypal-button" can be anything, but should start with data- to keep with convention
'PayPal', 'Button', 'domain.com.au' can also be anything
See https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide?csw=1
-
Many Thanks Alan
I have issued these instructions to dev team and they have quoted £490 for setting up this 1 goal and £900+ for enabling and setting up e-commerce tracking which sounds extraordinary to me, Would appreciate your view, does this sound way of the mark to you ?
Normally developers i work with would implement these at less than half a days work
Cheers
Dan
-
Alan's approach is what we use as well for non-purchase related goals. We set an event in the function that verifies a form submission (linked to the submit, or in your case maybe purchase, button) so the event is fired when the form is submitted successfully. Then you can set the goal as that event being triggered, and you're good to go.
Hope that helps,
Chris Wilson
-
Look at events in GA, all you need to do is fire a event in javascript and that event can be your goal, a goal does not have to be an url, it just needs to be an action, a button click for example.
add an attribute to a button or link such as data-ga-event
then add code such as
$document).ready(function(){
$("*[data-ga-event]).click(function(){
//your google event here
}
})
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
What Analytics Do You Use To Track IOS and Android?
We have about 600k downloads of our app and would like to know what cost effective analytics tool you use to gain insight into what your app users are doing? Thanks! Best... Mike
Reporting & Analytics | | 945011 -
Google Analytic - Avg load Time - Page Timing Sometimes Graph goes suddenly up why?
Hello All, I have attached the avg load time screenshot for my ecommerce site for 1 month. Screenshot is for Mobile site. If you check the graph then only one day graph gone very high. Now again I have attached that particular day graph too. My query is why graph gone high 1) Is it my site not performed well on particular one day on particular device for single visitor? because for desktop and tablet graph showing normal 2) so here if site restart or down then it can be a problem for desktop, tablet too right? Can anyone give me any clue? Z4hX1 IanuP
Reporting & Analytics | | pragnesh96390 -
Google Analytics - Adding a sub-domain
Hi I have a google analytics query.
Reporting & Analytics | | Niki_1
I have a main site with a google analytics tag and I have 2 forms that sit on a subdomain with a different GA code. As I would like to measure end to end tracking, I would like the same GA code on the subdomain. What is the best way for me to implement this? Would I need to make some changes to the GA code that sits on the main site or can I add the the GA code from the main site onto the subdomain? Thanks0 -
Reverse an Ecommerce Transaction in Analytics
I am looking for help on using Googles Reverse an Ecommerce Transaction in Analytics work flow documented here: https://support.google.com/analytics/answer/1037443?hl=en&ref_topic=1037062 Essentially an incorrect transaction was processed that was for such a large number that it is really messing up reporting. I have never used Googles outlined process and from my research it looks like it might not reverse the transaction for the date it was placed but ad a negative amount to offset it on the date submitted. This will still work for year of year reporting but it will mess up the data for two different days in one month. If someone who had done this before has any insight please chime in thanks! Here is a support thread about the reverse transaction messing up a different days data. https://productforums.google.com/forum/#!searchin/analytics/reverse$20transaction/analytics/gDiVNJDwx5I/BwlNJ9D6Lp8J
Reporting & Analytics | | RMATVMC0 -
Pinterest\Instagram analytics available?
Is there a way to add Instagram and Pinterest analytics to Moz? Is this already available and I am just missing it? VERY interested in this... thank you!
Reporting & Analytics | | Isaac55891 -
How would I create this type of report in Google Analytics?
I work for an e-commerce site. I would like to run a weekly report to see what every category pages increase and decrease for pageviews would be. How would I do that?
Reporting & Analytics | | EcommerceSite0 -
Track image searches on google analytics
How can i track image searches on google analytics? To filter the refferers by image.google or /imgres does not work in new google analytics (and brings an impossibly small number on old GA). also, this would not cover local google image refferers, that don't come from image.google.com. anyone knows how to find image search sources? i haven't found anything helpful in google's documentation or forums. thanks!
Reporting & Analytics | | zeepartner0 -
Mobile and Google Analytics
As my mobile numbers are going up in Google Analytics I'm trying to figure out what phone runs what browser. I see that 93% of mobile users have Safari which I believe is iPhone, iPad and iPods. There is a 6% usage of "Mozilla Compatible Agent". What cell phone would this be?
Reporting & Analytics | | LabadieAuto0