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
-
Drop in Bounce Rate in Google Analytics
Hi guys, I have recently seen a large drop in bounce rate (from GA) which seems unnatural for one of our clients website. Since the start of 2018, the bounce rate was consistently between 40-60%, and then saw a random spike, and now for the past two weeks, the bounce rate is below 10%. I was wondering if anyone had any ideas if this is a problem with GA, or the site itself. Site: https://www.zoomocarcredit.com/ Any comments/feedback is greatly appreciated. Thanks in advance! Jack. SnP0Hc4
Reporting & Analytics | | ChemistryMarketing0 -
Tasks for Google Analytics training
Hi Mozzers, I'm delivering some Google Analytics (Fundamentals level) training, and trying to make it was fun and as interesting as possible... which is quite a challenge when it comes to GA. I was just wondering if you're aware of training tasks, or interactions, I could bring into this kind of training session? The group are particularly interested in user journeys and the effectiveness of content. Thanks!
Reporting & Analytics | | A_Q0 -
Google Analytics Real Time Not Working! :(
Hello Everyone, Today, the real time feature in my google analytics stopped working. I am able to see that traffic is visiting my site, but not in real time. The real time count is usually at 0. But, there are some instances where real time will come back online, but there will be only 1 unique visitor. At any given time, our website usually has 20 visitors or so..Has anyone encountered this issue? Where should i start looking for fixes? What are the possible problems? Thanks!
Reporting & Analytics | | KarlMarxTheBear0 -
WMT and 'Links To Your Site'
Anyone else find that there are, almost continually, links added to the 'Links To Your Site' list from years ago that weren't previously reflected? I'm seeing links that were added to directories in 2008 (by whoever was doing the SEO then) only showing in the last week or so when these links weren't in the list a few months ago. I don't suppose there's much I can do - it's just annoying in that it adds to more people to contact to have nonsense removed.
Reporting & Analytics | | Martin_S0 -
Goal tracking in Google Analytics
Hi folks I read from various sources that if you setup goals in Google Analytics each of these goals can only be fulfilled once per visit. Also some sources suggesting that only one goal from each goal group can be fulfilled per visit. On our site we have a goal for external links since this provides value to partners. Some users do open an external link in a new tab, then come back to the main site. Any further goal completions would then not get tracked. Since we apply a result based payment model for our work this means we are literally loosing money. Anyone has official info from Google on this? Can it be configured? How long is a visit? Thanks a million and have a great day. Fredrik
Reporting & Analytics | | Resultify0 -
Google Analytics underreporting
I have a site selling items, I use paypal buttons and get a report using ipn back from paypal telling me when I have sold a item. I also have a Google analytics event setup on the button, and one on the confirmation page.
Reporting & Analytics | | AlanMosley
For example in the last few days I have sold over 10 items from the website, but have only 2 events from the button and none from the confirmation page. The confirmation page depends on the user getting redirected back from PayPal so I can see that being upper reported, but there is no way you can buy without clicking the button.
I have the chrome addon from google to debug your analytics code and it fires every time.
The figures seem to report only about 20% of events over a long period of time. If it was not working at all, I could assume I have not set things up correctly but this is not the case, I get a regular flow of events but at about 205 of sales.
I am very disappointed with GA, seems a waste of time. anyone else had the same expirence?0 -
Analytics bounce rate change
Hi mozzers, I have a little riddle. A few weeks ago the bounce rate on one of our website dropped 90% - from 45 % average to 5 % average. We haven't changed much in the code of the site, layout or anything else. The traffic is pretty stable too. Anyone can guess why? Or have experienced something similar? xOvrb.jpg
Reporting & Analytics | | ThomasHgenhaven0 -
URL Structure and Analytics Reporting
Since there are no dumb questions, here's mine: Our url structure currently displays the date followed by the post title. However, our news website has many categories like world, sports, entertainment etc. Now, when tracking in GA we get to see how many hits a specific page is getting (like entertainment) but since the category is not defined in the URL GA does not add the detail story views to the category page views. To illustrate further, a story from the entertainment section maybe displayed on the Home page and a reader may click on that story and read it without going to the entertainment page. This however, does not reflect in the analytics for that specific page(in this example, the entertainment page). My question is, should we ammend the url structure to include the categories, if so, would the editor have to do that while composing the post or is there some other way. We are using WP. Or should I create some filters or something on GA. Thanks!
Reporting & Analytics | | RishadShaikh590