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
-
Google Analytics Set-Up for site with both http & https pages
We have a client that migrated to https last September. The site uses canonicals pointing to the https version. The client IT team is reluctant to put 301 redirects from the non-secure to the secure and we are not sure why they object. We ran a screaming frog report and it is showing both URLs for the same page (http and https). The non-secure version has a canonical pointing to the secure version. For every secure page there is a non-secure version in ScreamingFrog so Google must be ignoring the canonical and still indexing the page however, when we run a site: we see that most URLs are the secure version. At that time we did not change the Google Analytics setup option to use: "https" instead of "http" BUT GA appears to be recording data correctly. Yesterday we set up a new profile and selected "https" but our question is: Does the GAnalytics http/https version make a difference if so, what difference is it?
Reporting & Analytics | | RosemaryB1 -
Site account in Google Analytics
Hello I have a question about my site account. On 2014, during a week, my ID tracking of Google Analytics was removed of the site, in this period the volume of users and sessions is lower than the other weeks. But I don't understand why are the sessions and users still reporting during this period without ID Tracking
Reporting & Analytics | | Arkix0 -
Goals in analytics
How do you establish which keywords generated traffic that resulted in goal completions (in GA) ? I thought this would be Reverse Goal Paths but this only goes back as far as the original page. Goal Flow shows the traffic source which is better but not the kw used ? Cheers Dan
Reporting & Analytics | | Dan-Lawrence0 -
Google Analytics - Cross Domain Tracking Goals
Hi guys, looking at the best way to organize this - Site 1 - Shoe Store - (Old site with analytic history - UA-12345-1) Site 2 - Clothing Store - (Brand New UA-54321-1) Right now i have 2 separate GA Accounts for the sites. But i would like to track goals from Site 2 to Site 1. For that i need to set up cross domain tracking. So i take it i would need to create another account under Site 1 - (UA-12345-2) and put that new code on Site 2? Or do the UA numbers have to be exact? example both 12345-1? In which case, i would need to set up 2 different profiles with filtering? Main concern is i want to keep separate data for both sites, espically if UA's will be the same. Trying to visualize - UA-12345-1 Profile 1Shoes/Master Profile 2 Shoes Profile 3 Clothes Or UA-12345-1 Shoes UA-12345-2 Clothes Thanks, Mike
Reporting & Analytics | | IsHot0 -
Page Speed - What tool to use?
I am looking for a good tool to measure page speed. Any tools out there that you recommend?
Reporting & Analytics | | rmontanez0 -
Pages crawled
Hi I've created a campaign for my own website and added 3 competitor sites. Under the campaign it says that 53 pages have been crawled but my site has less than 10 pages. Are the other pages from my competitor sites? Thanks James
Reporting & Analytics | | avecsys0 -
Duplicate page content
I have a website which "houses" five different and completely separate departments, so the content is separated by subfolders. e.g. domain.com/department1 domain.com/department2 etc. and each have their own individual top navigation menus. There is an "About Us" section for each department which has about 6 subpages (Work for us, What we do, Awards etc.) but the problem is that the content for each department is exactly the same. The only difference is the navigation menu and the breadcrumbs. This isn't ideal as a change to one page means having to make the change to all 5 and from an SEO perspective it's duplicate content x5 (apart from the Nav). One solution I can see is to have the "About Us" section moved to the root level (domain.com/about-us) and have a generic nav, possibly with the department names on it. The only problem with this is that it disrupts the user journey if they are forced away from the department that they're chosen. Basically i'm looking for suggestions or examples of other sites that have got around this problem, I need inspiration! Any help would be greatly appreciated.
Reporting & Analytics | | haydennz0 -
What analytics program is best for a small business?
Of course Google analytics is good. I tried getclicky.com. Are there any other analytics programs that are better that are also affordable? What do you use?
Reporting & Analytics | | DallasBonsai0