Comments (4)
Are you using Google Analytics 4 for event tracking or something else? And are you using the HTML Script Tag SDK or something else?
One of the common issues with redirects are that the page redirects before the tracking event can fire. So what is likely happening is that it IS splitting traffic 50/50, but a lot of the tracking calls to record the variation are being skipped, so it looks unbalanced when you look at results.
We have a navigateDelay
setting that defaults to 100ms. if your event tracking library takes longer than that, you may need to increase this delay.
from growthbook.
Here is more detailed info how i add scripts, i use webflow for creating website
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-000"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-000', {
server_container_url : 'https://example.com/metrics',
});
</script>
<script async
data-api-host="https://cdn.growthbook.io/"
data-client-key="sdk-000"
src="https://cdn.jsdelivr.net/npm/@growthbook/growthbook/dist/bundles/auto.min.js"
></script>
<script>
window.growthbook_config = window.growthbook_config || {};
window.growthbook_config.trackingCallback = (experiment, result) => {
console.log(experiment, result)
gtag('event', 'experiment_id', {
experiment_id: experiment.key + ":" + result.key,
gbuuid: result.hashValue,
});
};
window.growthbook_config.navigateDelay = 300
window.growthbook_config.antiFlicker = true
window.growthbook_config.antiFlickerTimeout = 800
window.onload = function() {
document.getElementById('preloader').style.display = 'none';
};
</script>
from growthbook.
Hey there,
We have the same problem, I was wondering why this difference...
Used the Shopify SDK method and documentation, with GA4.
Simple URL redirect experiment shows this 70/30 issue.
EDIT : well, just noticed the GB js was far before the GA4 js, I changed GB position, let's see.
from growthbook.
@jdorn do i have to increase navigateDelay? for how long? or are there any problems in my code above?
from growthbook.
Related Issues (20)
- [Feature] integrate the growthbook iframe in website
- [Feature] Add the ability to limit the maximum size of the saved groups HOT 1
- Set feature flag values via URL query params
- [CI] [Feature] Run script to refresh CAPABILITIES.md when updates are made to SDK versions, capabilities
- [Feature] Add ability to apply capping only on Numerator
- AWS Cognito SSO Documentation HOT 1
- [Feature] Fetching features via API filtered by tag
- [Question] Return only the features flags of an app HOT 1
- [Feature] Minimum elapsed time threshold
- AWS Athena - Assume Role HOT 2
- [Bug] Users with global no-access role are unable to view their personal access tokens HOT 1
- [Feature] Update environment controller and remove ability to update environments from putOrganization
- [Feature] Filter projects on create resource forms
- [Feature] Add a column with example values and/or a format to targeting attributes HOT 3
- [Bug] Persistent logs from okhttp3.OkHttpClient when using GBFeaturesRepository
- [Bug] Global Webhooks do not report all possible SDK payload changes HOT 5
- [Bug]
- [Bug] "Target by Saved Groups" doesn't work as expected HOT 1
- [Bug] Test not splitting traffic correctly after reset and re-randomizing audience HOT 1
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 growthbook.