Closed Bug 977391 Opened 10 years ago Closed 10 years ago

Add GA tracking to /contribute

Categories

(www.mozilla.org :: Analytics, defect)

Production
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Habber, Unassigned)

Details

(Whiteboard: [kb=1381594] )

Attachments

(1 file)

Apply basic GA tracking to updated /contribute page. 

Track the following:
- all links
- newsletter (in 2 locations: top right area of page and in footer)
- interest form
- video engagement
Depends on: 973967
Whiteboard: [kb=1293106]
No longer depends on: 973967
Depends on: 983861
Component: General → Analytics
No longer depends on: 983861
Hi Gareth and Craig - Do you think we could aim to get this done the week of April 21?  Thx!
That works for me. I should have the GA requirements done tomorrow.
Can we set the following events:

1) On submit of the 'Want to help' form, please fire the following GA event:

_gaq.push(['_trackEvent', '/contribute Page Interactions', 'Want to Help Form - Area of Interest', dropdownselection]);

where dropdownselection is the value of value, such as "support", "qa","coding", etc. This will keep the selection values consistent across all translated pages.

 <div class="field field-interest">
            <select id="id_interest" name="interest" required="required">
<option value="" selected="selected">Area of interest?</option>
<option value="support">Helping Users</option>
<option value="qa">Testing and QA</option>
<option value="coding">Coding</option>
<option value="marketing">Marketing</option>
<option value="localization">Localization and Translation</option>
<option value="webdev">Web Development</option>
<option value="addons">Add-ons</option>
<option value="design">Visual Design</option>
<option value="documentation">Documentation and Writing</option>
<option value="education">Education</option>
<option value="other">Other</option>
<option value="suggestions">I have a suggestion for Firefox</option>
<option value="issues">I need help with a Firefox issue</option>
</select>
</div>

2) On submit of the newsletter form, please fire:

_gaq.push(['_trackEvent', '/contribute Page Interactions', 'submit', 'Newsletter Registration']);

3) On click of links with the 'Find an Opportunity section', please fire

_gaq.push(['_trackEvent', '/contribute Page Interactions', 'exit link', {insert URL}]);
Commits pushed to master at https://github.com/mozilla/bedrock

https://github.com/mozilla/bedrock/commit/3f923fce54ccf0296d1d15e4638f23c8daf64e6e
Fix bug 977391 - add GA tracking to contribute page

https://github.com/mozilla/bedrock/commit/1f870b5f2d86792fc308a37ffb32d815d56be2fe
Merge pull request #1985 from craigcook/bug-977391-add-tracking-to-contribute

Fix bug 977391 - add GA tracking to contribute page
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
This is in production.
Status: RESOLVED → VERIFIED
I'm seeing some extremely low conversion rates on this page, which makes me think something may be wrong with the events on the email and contribute form. Data looked good when i was testing in realtime within GA, but I checked httpfox and it looks like some requests are being aborted on submission. 

We had a similar issue with our newsletter form in another bug
https://bugzilla.mozilla.org/show_bug.cgi?id=896001 

Alex, would you be able to help see if this is a similar issue to what you saw in bug 896001?
Status: VERIFIED → REOPENED
Flags: needinfo?(agibson)
Resolution: FIXED → ---
Thanks for the heads up, I'll take a look and see what might be up.
Status: REOPENED → ASSIGNED
Flags: needinfo?(agibson)
Hey Gareth,

Testing locally I can see the aborted requests for __utm.gif when submitting the form. Looks like when GA executes our callback, it happens after the request for __utm.gif is made, but not necessarily when the request has completed. I've added a 600ms delay before the callback executes, which seems to be enough time for the request to complete. With this added, I'm not seeing any aborted requests in HttpFox any longer.

I've put this up on demo3, can you please test and verify?

https://www-demo3.allizom.org/en-US/contribute/

Thanks!
Flags: needinfo?(garethcull.bugs)
Whiteboard: [kb=1293106] → [kb=1381594]
Gareth, please note that while this is a small change it is to our global GA helper, so therefore effects more than just the /contribute page. Any page where we track clicks to external links/resources uses this method, so it is maybe good to test some other key pages as well.

Hopefully this could improve external request tracking in general (if there might have been similar aborted events elsewhere).
Much appreciated Alex! I'm not seeing any aborted requests now in httpfox. That seems to have done the trick. I'll take a look at some other links around our site and will let you know if i see anything.

Thanks!

Gareth
Flags: needinfo?(garethcull.bugs)
Hi-

Could we please get this fix live so that we can collect data for the June 9-10 product redesign sprint?

Thx,
Jen
> I'll take a look at some other links around our site and will let you know if i see anything.

Gareth, did you get a chance to test this change further? Are we good to merge and push if so?

Thanks
Flags: needinfo?(garethcull.bugs)
I've tested the following on /contribute and see the right GA events:

* want to help form with various types (verified)
* newsletter sign up (verified) 
* video interaction (not implemented)
* exit links (missing URL label. Craig notified)
Commits pushed to master at https://github.com/mozilla/bedrock

https://github.com/mozilla/bedrock/commit/8085d423a4d1b1a372bb4db3cc5b4d72dc496fd7
bug 977391 - add href to outbound link tracking

https://github.com/mozilla/bedrock/commit/e6d188f9ac512839a5a9e972e9ccd2c396c612b9
Merge pull request #2052 from craigcook/bug-977391-fix-link-tracking

bug 977391 - add href to outbound link tracking
Hey Alex,

I tested some outbound links on https://www-demo3.allizom.org/en-US/firefox/desktop/trust/ and on the homepage. And occasionally i did see some aborted calls when clicking on the external link. Can you take a look at the /trust/ page and see? 

Let me know if you see the same thing. 

Gareth
Flags: needinfo?(garethcull.bugs)
(In reply to Gareth Cull [:garethc] from comment #16)
> Hey Alex,
> 
> I tested some outbound links on
> https://www-demo3.allizom.org/en-US/firefox/desktop/trust/ and on the
> homepage. And occasionally i did see some aborted calls when clicking on the
> external link. Can you take a look at the /trust/ page and see? 
> 
> Let me know if you see the same thing. 
> 
> Gareth

Hey Gareth, 

I'm not seeing any dropped calls here on the /trust page on demo3. I can adjust the timeout a *little* more just to be on the safe side, but it looks all good here. I am seeing aborted calls on the same page on prod however, so this fix seems to improve things there too.

We do have to weigh up a suitable timeout delay before leaving a page which does not make the visitor wait too long. On a slow connection, there's always been the possibility that an outbound GA event occasionally might not complete every time. This is still true, although with this change we're now using a total of 100ms more delay than we we're previously.
Ok. Thanks for the feedback Alex. My internet connection yesterday was not the greatest when testing and I wouldn't necessarily want to adjust the timeout too much more as it is impacting the experience. Let's just keep the timeout as is and push this improvement. Thanks.
Sounds good Gareth, thanks for checking things out!
Commits pushed to master at https://github.com/mozilla/bedrock

https://github.com/mozilla/bedrock/commit/9e2cdeb8a19e8b3d9e88e949adaff10ec3f820e3
bug 977391 - add video engagement tracking

Track pause/play events on the video sequence.

https://github.com/mozilla/bedrock/commit/a4b70fd28257f971c10babb28fd07060dc4c09ea
Merge pull request #2054 from craigcook/bug-977391-video-tracking

bug 977391 - add video engagement tracking
Commits pushed to master at https://github.com/mozilla/bedrock

https://github.com/mozilla/bedrock/commit/4aee77e718583f9d6e4175a34316ffb60935e21d
[fix bug 977391] Fix GA tracking in form signup on /contribute

https://github.com/mozilla/bedrock/commit/56628faa513f5b0073756c7d2c8b5dc94b2cd2b7
Merge pull request #2035 from mozilla/bug-977391-fix-ga-tracking-contribute-page

[fix bug 977391] Fix GA tracking in form signup on /contribute
Status: ASSIGNED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: