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
-
WMT data vs. Analytics
Hi Each month I export my data from WMT and go through analytics. I also export our non brand queries from analytics and not WMT - I haven't had an issue before, but this month the impression data is quite different. In the hundreds of thousands different for keywords, everything seems to have taken a big jump and it seems strange. However, not everything is different, I've spot checked some and its; consistent in both, I'm not sure what's going on? One example would be: <colgroup><col width="281"> <col width="72"></colgroup>
Reporting & Analytics | | BeckyKey
| industrial shelving | 1016 |
| industrial racking | 999 | These appear as impressions from Query data in analytics, but they appear nowhere in my WMT query data. Analytics query data shows: | industrial equipment | 670 | WMT Data: | industrial equipment | 143 | Anyone have any idea? Perhaps some kind of tracking issue? Also I've triple checked dates etc...0 -
Google Analytics Goals - Different Domain
Hi, We currently need to setup a goal that involves a different domain. Any guidance would be greatly appreciated. more info: the checkout process is redirected to a secure.domain Just let me know if I can provide any additional info that may helpful.
Reporting & Analytics | | opusvo0 -
Google analytics Goals and Funnels??
Hey - how's things? I've got 2 goals setup, each of which use the same thank you page but with different required funnels. The results have been identical for the last few weeks - which tells me I've got something wrong!! The first goal has a contact form on every page in the /products/ directory set up like this:
Reporting & Analytics | | agua
destination equal to: /thanks-enquiry/funnel step1 page: ^/products/.* required: yes The first goal has a form on 1 page called /on-sale set up like this:
destination equal to: /thanks-enquiry/
funnel step1 page: /on-sale required: yes Any ideas?0 -
How do I set a filter in Google Analytics?
I want to filter out direct traffic from the service provider msn. For some reason they are crawling our traffic and its throwing off my data. So I want to exclude direct, but only from msn. Would I set my first filter for direct then msn or vice versa? Thanks
Reporting & Analytics | | EcommerceSite0 -
Google analytics question
Ok so in my traffic sources break down I have 3 sections: direct, organic, and referral. My question is under the referral tab I have recently noticed a new traffic source, my own website.... How is this possible? My top referring site is my own website.... Is this considered direct traffic or how is this being traced?
Reporting & Analytics | | jameswalkerson0 -
Set up Google Analytics by product category
Does anyone know if it's possible to set up Google Analytics data by product category? We sell roughly twenty product categories on our ecommerce site. We can look at our analytics performance for the site overall and drill down to specific pages, but what we really want to see is our performance by product category. Our product categories can include up to 5000 products. Any pointers on how to do this?
Reporting & Analytics | | ironpac0 -
Google analytics
I updates all my google analytics accounts after the update and now i went to each campaign and it appears there is a problem and now if I reset it i loose history. Is this a glitch or a problem
Reporting & Analytics | | JAGlasvegas0 -
Google Analytics - multiple counters
Hey there Mozzers! One of our customers wants to seperate one Google Analytics account into multiple accounts. The website is divided in three parts: Main: www.website.nl Sub1: www.website.nl/sub1 Sub2: http://www.website.nl/sub2 And they would like 4 different reports under one account. R1: Total count R2: Website.nl (without Sub 1 & Sub2) R3: Sub1 R4: Sub2 I know multiple counters will get in conflict with each other, so I have to implement some filters. E.g: We can configure a filter for R3 on "astmakids" in URL. My question is: is there a safe way to implement multiple Analytics filters on one website? And how will R3 see visitors that come from the root domain astmafonds.nl? Are they referrals? Thanks a lot in advance!! Partouter
Reporting & Analytics | | Partouter0