Skip to content

Instantly share code, notes, and snippets.

@acoyfellow
Created August 24, 2019 11:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save acoyfellow/9f22e292adba378f5448201db996ff35 to your computer and use it in GitHub Desktop.
Attribute.pro Data Retrieval Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Sign Up Page</title>
<script>
window.attributeOptions= {
captureParams: false,
subdomain: 'example',
};
</script>
<script src="https://attribute.pro/loader.js"></script>
<script>
function onConversion(){
attribute.get('params').then(console.log);
// { data: { utm_campaign: "example" } }
};
</script>
</head>
<body>
<!-- other-website.com -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment