Comments (2)
For Google AdWords, if we wanted to track signups and participation linked to advertising, the boilerplate is below.
Would we be able to set this up to happen for prod only?
- In the
head
of the base page (or in our js) add:
<script async src="https://www.googletagmanager.com/gtag/js?id=INSERT_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'INSERT_ID');
</script>
- On pages where we want to track an action - signup, participate - include the following, and call
gtag_report_conversion
<!-- Event snippet for Sign-up conversion page
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script>
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'INSERT_EVENT_ID',
'event_callback': callback
});
return false;
}
</script>
from lookit-api.
Make sure to track sign up
and participation
(Visiting the experiment proxy page)
from lookit-api.
Related Issues (20)
- Rename ‘Study Ad and Recruitment’ and ‘Study Details’ buttons to ‘Edit Study Ad’ and ‘Edit Study Design’ respectively HOT 1
- Update out-of-date translation files
- Switch URL parameters to uppercase to pass-through parameters for external studies on youcanbookme HOT 1
- Prevent and/or handle very large single file recordings HOT 4
- Scoping: Query info for a grant HOT 3
- Check/handle large webcam recording files
- lookit-bot email delay scoping
- One-time request: Emails of all fams who have done M1 of Project GARDEN HOT 4
- Restructure study responses page to encourage psych-DS download
- Have lookit-bot forward all unsubscribe emails to [email protected] HOT 1
- Investigate video deletion from S3 HOT 1
- Inconsistency in labelling data downloads as identifiable
- Child data download ignores data checkbox options
- Add labs to resources list HOT 3
- Fix video deletion process
- Video deletion backlog/maintenance
- Celery job to handle incomplete video uploads in S3
- Support separate S3 bucket for jsPsych videos
- Update PostgreSQL
- Completion Certificates for studies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lookit-api.