Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.