Skip to content

Instantly share code, notes, and snippets.

@Balachandark
Created November 8, 2019 06:25
Show Gist options
  • Save Balachandark/b33c71baceb4a678a92702f034fc20c8 to your computer and use it in GitHub Desktop.
Save Balachandark/b33c71baceb4a678a92702f034fc20c8 to your computer and use it in GitHub Desktop.
Add embedded code in custom layout
<?php
$uri = ltrim( $_SERVER['REQUEST_URI'], '/' ); // Removes the leading slash.
$uri = rtrim( $uri, '/' ); // Removes the trailing slash.
$uri = str_replace('/', ' ', $uri); // Replaces the slashes with spaces.
?>
<script type="text/javascript" src="a.remarketstats.com/px/smart/?c=222ccaf40d04fb6&seg=<?php echo $uri; ?>" ></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment