Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type='text/javascript'>
- //Check if supplied parameter exists in query string
- function gup( name )
- {
- name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
- var regexS = "[\\?&]"+name+"=([^&#]*)";
- var regex = new RegExp( regexS );
- var results = regex.exec( window.location.href );
- if( results == null )
- return "";
- else
- return results[1];
- }
- if(gup('gclid')!="" && gup('gaw_campaign')!="" && gup('gaw_term')!="") {
- _gaq.push(['_setCustomVar',1,'GAWCampaign',gaw_campaign,1]);
- _gaq.push(['_setCustomVar',2,'GAWTerm',gaw_term,1]);
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement