Home / Admin / Check URL for Braze UUID
Duplicate Snippet

Embed Snippet on Your Site

Check URL for Braze UUID

Check URL for Braze UUID, if exists call braze.changeuser()

Colin Bunn PRO
<10
Code Preview
php
<?php
if(isset($_GET['uuid'])) {
	$braze_uuid = $_GET['uuid'];
}
if (!empty($braze_uuid))
echo "
<script>
	window.addEventListener('load', function () {
		console.log('uuid=".$braze_uuid."');
		braze.changeUser('".$braze_uuid."');
	})
</script>
";

Comments

Add a Comment