Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. <a id="gclid" href="lol"><img src="path/to/your/image.png" /></a>
  2.  
  3. <script>
  4. var url = new URL(window.location.href);
  5. var gclid = gclid.searchParams.get("gclid");
  6. document.getElementById("gclid").href = "https://domain-a.com/index.html?gclid="+gclid;
  7. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement