Answer the question
In order to leave comments, you need to log in
How to reflect transitions from letters to VKontakte in analytics?
Good afternoon. Please tell me how you can track the transitions from letters to the VKontakte group using Google Analytics?
I tried this option:
1) I made a vk.php file into which I inserted the Google Tag Manager code (the analytics tag works fine) and after it a JS redirect to the VKontakte group;
2) In the letter, I indicated a link to this file with a UTM tag
. For some reason, this campaign is not displayed in Analytics sources. What is my mistake and how can I track conversions to other sites in letters?
vk.php file code
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Перенаправление...</title>
</head>
<body>
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- End Google Tag Manager -->
<script language="JavaScript">
window.open('https://vk.com/gruppa', '_self');
</script>
</body
</html>
Answer the question
In order to leave comments, you need to log in
1. Turn off the redirect on VKontakte
2. Go with different tags yourself - check if GA works
3. If it doesn't work - pick GTM and configure GA :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question