SlideShare a Scribd company logo
Blocking Spam Traffic with GTM
http://tagmanager.google.com
Remove all
that junk
in your
analytics
trunk!!
First let’s replicate that junk
Go to https://ga-dev-
tools.appspot.com/hit-builder/
1. Set client GA id in the tid field
2. Autogenerate the cid
3. Add 2 parameters
Name= dp value= /
Name= dr value= http://spam.com
Open GA realtime overview
Check that Spam
Validate Hit in Hitbuilder
Check that open GA report
Let’s Filter!
Keep only the Good Stuff
Create New Tag in GTM
1. Title it setCookie
2. Choose Custom HTML
3. Paste Script into HTML field
1. Copy script from here.
4. Click continue
Let’s Fire that Tag
1. Choose More and then
click New
2. Title it LandingPage
3. Choose Page View for
event and trigger
4. Choose Some page views
5. Set referrer>does not
contain> yourdomain.com
6. Click Create Trigger
7. Click Create Tag
Create New Trigger continuing where
you left off in GTM
Confirm that Tag is Firing
1. Enter debug mode from
dropdown under Publish
2. Enter client site thru
Google Search and check
for tag in bottom pane
3. Go into developer mode
(press CTRL+Shift+I)
1. Under Resources choose
cookies then client
domain
2. Look for dev cookie
Create a New Variable in GTM
1. Choose Variables in GTM
then scroll to bottom to
select new user defined
variable
2. Title it “dev cookie”
3. Choose 1st party cookie
4. Title the variable “dev”
5. Click create variable
6. Refresh Debug Mode
7. Refresh Client url and go to
the tag manager pane at
bottom
8. Find the dev cookie under
pageview then variables
Let’s Create a Custom Dimension in
GA1. Go to Client GA Admin
View> Property
Column choose
Custom
Definitions>Choose
Custom Dimensions
2. Select New Custom
Dimension
3. Name it “dev”
4. Set Scope to User
5. Ensure Active and
Create
6. Pay attention to
dimension number
1. Likely will be 1
Include Dimension in Client GTM Analytics Tag
1. Choose the analytics
tag firing on all pages
2. Edit Configure Tag
section
3. Select More
Settings>Custom
Dimensions
4. Enter value from GA
(likely 1) and set value
to dev cookie.
5. Continue>Save tag
Check that Variable
1. Refresh your GTM Debug Mode
and Client Site
2. Using Google Tag Assistant
Select the Analytics Tag
3. Select Pageview requests
4. Select Custom Metrics
5. Check for your custom
dimension
Create Filter in GA
1. Under Client GA Admin go to Views
and Create a Test View
2. Create new filter in the new view
3. Title it “include cookied data”
4. Choose custom
5. Set to Include
6. Filter field search “dev” and select it
7. Set pattern to “notset”
8. Save.
9. Go to the new view realtime
reporting. Resend the spam hit with
the hitbuilder from earlier. It should
not appear. Can also check main view
to see if spam hit shows. If working
apply filter to the main GA view.
Spam Fatality
Publish Your GTM
Container
And Say Goodbye
to Spam Traffic in
GA!!
YouTube Tutorial

More Related Content

Viewers also liked

Mesopotamia
MesopotamiaMesopotamia
Mesopotamia
Keerthan K Anish
 
Mesopotamian Civilizations 6.2
Mesopotamian Civilizations 6.2Mesopotamian Civilizations 6.2
Mesopotamian Civilizations 6.2
Stockton Unified School District
 
Mesopotamia :The First Civilization
Mesopotamia :The First CivilizationMesopotamia :The First Civilization
Mesopotamia :The First Civilization
Nikki Shree
 
Sumeria and early Mesopotamia
Sumeria and early MesopotamiaSumeria and early Mesopotamia
Sumeria and early Mesopotamia
Pinecrest Academy Nevada
 
Unit 3 part 1- the first civilization- sumer
Unit 3  part 1- the first civilization- sumerUnit 3  part 1- the first civilization- sumer
Unit 3 part 1- the first civilization- sumer
Kimberly Simpson
 
Mesopotamian Civilization
Mesopotamian CivilizationMesopotamian Civilization
Mesopotamian Civilization
Rey Belen
 
Mesopotamia
MesopotamiaMesopotamia
Mesopotamia
Rocío Bautista
 
Mesopotamia power point
Mesopotamia power pointMesopotamia power point
Mesopotamia power point
patricehigh
 

Viewers also liked (8)

Mesopotamia
MesopotamiaMesopotamia
Mesopotamia
 
Mesopotamian Civilizations 6.2
Mesopotamian Civilizations 6.2Mesopotamian Civilizations 6.2
Mesopotamian Civilizations 6.2
 
Mesopotamia :The First Civilization
Mesopotamia :The First CivilizationMesopotamia :The First Civilization
Mesopotamia :The First Civilization
 
Sumeria and early Mesopotamia
Sumeria and early MesopotamiaSumeria and early Mesopotamia
Sumeria and early Mesopotamia
 
Unit 3 part 1- the first civilization- sumer
Unit 3  part 1- the first civilization- sumerUnit 3  part 1- the first civilization- sumer
Unit 3 part 1- the first civilization- sumer
 
Mesopotamian Civilization
Mesopotamian CivilizationMesopotamian Civilization
Mesopotamian Civilization
 
Mesopotamia
MesopotamiaMesopotamia
Mesopotamia
 
Mesopotamia power point
Mesopotamia power pointMesopotamia power point
Mesopotamia power point
 

Similar to How to block spam referral traffic in google analytics

Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Mahendra Patel
 
Expert Tips and Techniques for Using Google Tag Manager
Expert Tips and Techniques  for Using Google Tag ManagerExpert Tips and Techniques  for Using Google Tag Manager
Expert Tips and Techniques for Using Google Tag Manager
OWOX BI
 
13 Steps to Set Up & Implement Google Analytics Through Google Tag Manager
13 Steps to Set Up & Implement Google Analytics Through Google Tag Manager13 Steps to Set Up & Implement Google Analytics Through Google Tag Manager
13 Steps to Set Up & Implement Google Analytics Through Google Tag Manager
Annie Singer
 
Having fun with Google Tag Manager (implement cool things like weather tracki...
Having fun with Google Tag Manager (implement cool things like weather tracki...Having fun with Google Tag Manager (implement cool things like weather tracki...
Having fun with Google Tag Manager (implement cool things like weather tracki...
Eventz.Digital
 
CoreyKamyarKatir.pdf
CoreyKamyarKatir.pdfCoreyKamyarKatir.pdf
CoreyKamyarKatir.pdf
Corey Kamyar Katir
 
Most Advanced GTM Deployment. Ever!
Most Advanced GTM Deployment. Ever!Most Advanced GTM Deployment. Ever!
Most Advanced GTM Deployment. Ever!
Phil Pearce
 
googletagmanager-230602072244-9b17e12b (1).pptx
googletagmanager-230602072244-9b17e12b (1).pptxgoogletagmanager-230602072244-9b17e12b (1).pptx
googletagmanager-230602072244-9b17e12b (1).pptx
arthiravi92
 
Google Tag Manager.pptx
Google Tag Manager.pptxGoogle Tag Manager.pptx
Google Tag Manager.pptx
PrashantThakur678201
 
All about google tag manager - Basics
All about google tag manager - Basics All about google tag manager - Basics
All about google tag manager - Basics
Rob Levish
 
Google Tag Manager | Google Tag Manager Tutorial 2019 | Google Tag Manager Se...
Google Tag Manager | Google Tag Manager Tutorial 2019 | Google Tag Manager Se...Google Tag Manager | Google Tag Manager Tutorial 2019 | Google Tag Manager Se...
Google Tag Manager | Google Tag Manager Tutorial 2019 | Google Tag Manager Se...
Simplilearn
 
Google Tag Manager (GTM)
Google Tag Manager (GTM)Google Tag Manager (GTM)
Google Tag Manager (GTM)
Areva Digital
 
Integration of Google Tag Manager and Google Analytics
Integration of Google Tag Manager and Google AnalyticsIntegration of Google Tag Manager and Google Analytics
Integration of Google Tag Manager and Google Analytics
Jatin Kochhar
 
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...
Christopher Gutknecht
 
How to setup google tag manager
How to setup google tag managerHow to setup google tag manager
How to setup google tag manager
srinivasan J S
 
Benefits of Google Tag Manager
Benefits of Google Tag ManagerBenefits of Google Tag Manager
Benefits of Google Tag Manager
Phil Pearce
 
[Webinar] Advanced Google Analytics
[Webinar] Advanced Google Analytics[Webinar] Advanced Google Analytics
[Webinar] Advanced Google Analytics
97th Floor
 
Google Tag Manager
Google Tag ManagerGoogle Tag Manager
Google Tag Manager
Suvam Patwari
 
Migrating wise.com to server-side GA4
Migrating wise.com to server-side GA4Migrating wise.com to server-side GA4
Migrating wise.com to server-side GA4
Tom Bennet
 
advanced google analytics.pdf
advanced google analytics.pdfadvanced google analytics.pdf
advanced google analytics.pdf
AnaGabunia3
 
Google Optimize for testing and personalization
Google Optimize for testing and personalizationGoogle Optimize for testing and personalization
Google Optimize for testing and personalization
OWOX BI
 

Similar to How to block spam referral traffic in google analytics (20)

Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
 
Expert Tips and Techniques for Using Google Tag Manager
Expert Tips and Techniques  for Using Google Tag ManagerExpert Tips and Techniques  for Using Google Tag Manager
Expert Tips and Techniques for Using Google Tag Manager
 
13 Steps to Set Up & Implement Google Analytics Through Google Tag Manager
13 Steps to Set Up & Implement Google Analytics Through Google Tag Manager13 Steps to Set Up & Implement Google Analytics Through Google Tag Manager
13 Steps to Set Up & Implement Google Analytics Through Google Tag Manager
 
Having fun with Google Tag Manager (implement cool things like weather tracki...
Having fun with Google Tag Manager (implement cool things like weather tracki...Having fun with Google Tag Manager (implement cool things like weather tracki...
Having fun with Google Tag Manager (implement cool things like weather tracki...
 
CoreyKamyarKatir.pdf
CoreyKamyarKatir.pdfCoreyKamyarKatir.pdf
CoreyKamyarKatir.pdf
 
Most Advanced GTM Deployment. Ever!
Most Advanced GTM Deployment. Ever!Most Advanced GTM Deployment. Ever!
Most Advanced GTM Deployment. Ever!
 
googletagmanager-230602072244-9b17e12b (1).pptx
googletagmanager-230602072244-9b17e12b (1).pptxgoogletagmanager-230602072244-9b17e12b (1).pptx
googletagmanager-230602072244-9b17e12b (1).pptx
 
Google Tag Manager.pptx
Google Tag Manager.pptxGoogle Tag Manager.pptx
Google Tag Manager.pptx
 
All about google tag manager - Basics
All about google tag manager - Basics All about google tag manager - Basics
All about google tag manager - Basics
 
Google Tag Manager | Google Tag Manager Tutorial 2019 | Google Tag Manager Se...
Google Tag Manager | Google Tag Manager Tutorial 2019 | Google Tag Manager Se...Google Tag Manager | Google Tag Manager Tutorial 2019 | Google Tag Manager Se...
Google Tag Manager | Google Tag Manager Tutorial 2019 | Google Tag Manager Se...
 
Google Tag Manager (GTM)
Google Tag Manager (GTM)Google Tag Manager (GTM)
Google Tag Manager (GTM)
 
Integration of Google Tag Manager and Google Analytics
Integration of Google Tag Manager and Google AnalyticsIntegration of Google Tag Manager and Google Analytics
Integration of Google Tag Manager and Google Analytics
 
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...
 
How to setup google tag manager
How to setup google tag managerHow to setup google tag manager
How to setup google tag manager
 
Benefits of Google Tag Manager
Benefits of Google Tag ManagerBenefits of Google Tag Manager
Benefits of Google Tag Manager
 
[Webinar] Advanced Google Analytics
[Webinar] Advanced Google Analytics[Webinar] Advanced Google Analytics
[Webinar] Advanced Google Analytics
 
Google Tag Manager
Google Tag ManagerGoogle Tag Manager
Google Tag Manager
 
Migrating wise.com to server-side GA4
Migrating wise.com to server-side GA4Migrating wise.com to server-side GA4
Migrating wise.com to server-side GA4
 
advanced google analytics.pdf
advanced google analytics.pdfadvanced google analytics.pdf
advanced google analytics.pdf
 
Google Optimize for testing and personalization
Google Optimize for testing and personalizationGoogle Optimize for testing and personalization
Google Optimize for testing and personalization
 

Recently uploaded

INTRODUCTION TO SEARCH ENGINE OPTIMIZATION (SEO).pptx
INTRODUCTION TO SEARCH ENGINE OPTIMIZATION (SEO).pptxINTRODUCTION TO SEARCH ENGINE OPTIMIZATION (SEO).pptx
INTRODUCTION TO SEARCH ENGINE OPTIMIZATION (SEO).pptx
Giorgio Chiesa
 
WTS-Berlin-2024-Veronika-Höller-Innovate-NextGEN-SEO-Merging-AI-Multimedia-an...
WTS-Berlin-2024-Veronika-Höller-Innovate-NextGEN-SEO-Merging-AI-Multimedia-an...WTS-Berlin-2024-Veronika-Höller-Innovate-NextGEN-SEO-Merging-AI-Multimedia-an...
WTS-Berlin-2024-Veronika-Höller-Innovate-NextGEN-SEO-Merging-AI-Multimedia-an...
Veronika Höller
 
Growth Marketing in 2024 - Randy Rayess, Outgrow
Growth Marketing in 2024 - Randy Rayess,  OutgrowGrowth Marketing in 2024 - Randy Rayess,  Outgrow
Evaluating the Effectiveness of Women-Focused Marketing
Evaluating the Effectiveness of Women-Focused MarketingEvaluating the Effectiveness of Women-Focused Marketing
Evaluating the Effectiveness of Women-Focused Marketing
HighViz PR
 
From Hope to Despair The Top 10 Reasons Businesses Ditch SEO Tactics.pptx
From Hope to Despair The Top 10 Reasons Businesses Ditch SEO Tactics.pptxFrom Hope to Despair The Top 10 Reasons Businesses Ditch SEO Tactics.pptx
From Hope to Despair The Top 10 Reasons Businesses Ditch SEO Tactics.pptx
Boston SEO Services
 
No Cookies, No Problem - Steve Krull, Be Found Online
No Cookies, No Problem - Steve Krull, Be Found OnlineNo Cookies, No Problem - Steve Krull, Be Found Online
No Cookies, No Problem - Steve Krull, Be Found Online
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Lily Ray - Optimize the Forest, Not the Trees: Move Beyond SEO Checklist - Mo...
Lily Ray - Optimize the Forest, Not the Trees: Move Beyond SEO Checklist - Mo...Lily Ray - Optimize the Forest, Not the Trees: Move Beyond SEO Checklist - Mo...
Lily Ray - Optimize the Forest, Not the Trees: Move Beyond SEO Checklist - Mo...
Amsive
 
Mastering The Best Restaurant Advertising Campaigns Detailed Guide
Mastering The Best Restaurant Advertising Campaigns Detailed GuideMastering The Best Restaurant Advertising Campaigns Detailed Guide
Mastering The Best Restaurant Advertising Campaigns Detailed Guide
Kopa Global Technologies
 
Data-Driven Personalization - Build a Competitive Advantage by Knowing Your C...
Data-Driven Personalization - Build a Competitive Advantage by Knowing Your C...Data-Driven Personalization - Build a Competitive Advantage by Knowing Your C...
Data-Driven Personalization - Build a Competitive Advantage by Knowing Your C...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
AI Best Practices for Marketing HUG June 2024
AI Best Practices for Marketing HUG June 2024AI Best Practices for Marketing HUG June 2024
AI Best Practices for Marketing HUG June 2024
Amanda Farrell
 
How to Start Affiliate Marketing with ChatGPT- A Step-by-Step Guide (1).pdf
How to Start Affiliate Marketing with ChatGPT- A Step-by-Step Guide (1).pdfHow to Start Affiliate Marketing with ChatGPT- A Step-by-Step Guide (1).pdf
How to Start Affiliate Marketing with ChatGPT- A Step-by-Step Guide (1).pdf
SimpleMoneyMaker
 
Global Growth Starts With Translation - How To Unlock Global Markets - Tim Kirby
Global Growth Starts With Translation - How To Unlock Global Markets - Tim KirbyGlobal Growth Starts With Translation - How To Unlock Global Markets - Tim Kirby
Global Growth Starts With Translation - How To Unlock Global Markets - Tim Kirby
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
What Software is Used in Marketing in 2024.
What Software is Used in Marketing in 2024.What Software is Used in Marketing in 2024.
What Software is Used in Marketing in 2024.
Ishaaq6
 
Breaking Silos To Break Bank: Shattering The Divide Between Search And Social
Breaking Silos To Break Bank: Shattering The Divide Between Search And SocialBreaking Silos To Break Bank: Shattering The Divide Between Search And Social
Breaking Silos To Break Bank: Shattering The Divide Between Search And Social
Navah Hopkins
 
Influencer Marketing Master Class - Alexis Andreasik
Influencer Marketing Master Class - Alexis AndreasikInfluencer Marketing Master Class - Alexis Andreasik
Influencer Marketing Master Class - Alexis Andreasik
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Embark on style journeys Indian clothing store denver guide.pptx
Embark on style journeys Indian clothing store denver guide.pptxEmbark on style journeys Indian clothing store denver guide.pptx
Embark on style journeys Indian clothing store denver guide.pptx
Omnama Fashions
 
SEO in the AI Era - Trust, Quality and Content Discovery - Andy Crestodina
SEO in the AI Era - Trust, Quality and Content Discovery - Andy CrestodinaSEO in the AI Era - Trust, Quality and Content Discovery - Andy Crestodina
SEO in the AI Era - Trust, Quality and Content Discovery - Andy Crestodina
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PickUp_conversational AI_Capex, Inc._20240610
PickUp_conversational AI_Capex, Inc._20240610PickUp_conversational AI_Capex, Inc._20240610
PickUp_conversational AI_Capex, Inc._20240610
Shuntaro Kogame
 
Get admission in various courses and boost your employment opportunities.
Get admission in various courses and boost your employment opportunities.Get admission in various courses and boost your employment opportunities.
Get admission in various courses and boost your employment opportunities.
complete knowledge
 
Mastering SEO for Google in the AI Era - Dennis Yu
Mastering SEO for Google in the AI Era - Dennis YuMastering SEO for Google in the AI Era - Dennis Yu

Recently uploaded (20)

INTRODUCTION TO SEARCH ENGINE OPTIMIZATION (SEO).pptx
INTRODUCTION TO SEARCH ENGINE OPTIMIZATION (SEO).pptxINTRODUCTION TO SEARCH ENGINE OPTIMIZATION (SEO).pptx
INTRODUCTION TO SEARCH ENGINE OPTIMIZATION (SEO).pptx
 
WTS-Berlin-2024-Veronika-Höller-Innovate-NextGEN-SEO-Merging-AI-Multimedia-an...
WTS-Berlin-2024-Veronika-Höller-Innovate-NextGEN-SEO-Merging-AI-Multimedia-an...WTS-Berlin-2024-Veronika-Höller-Innovate-NextGEN-SEO-Merging-AI-Multimedia-an...
WTS-Berlin-2024-Veronika-Höller-Innovate-NextGEN-SEO-Merging-AI-Multimedia-an...
 
Growth Marketing in 2024 - Randy Rayess, Outgrow
Growth Marketing in 2024 - Randy Rayess,  OutgrowGrowth Marketing in 2024 - Randy Rayess,  Outgrow
Growth Marketing in 2024 - Randy Rayess, Outgrow
 
Evaluating the Effectiveness of Women-Focused Marketing
Evaluating the Effectiveness of Women-Focused MarketingEvaluating the Effectiveness of Women-Focused Marketing
Evaluating the Effectiveness of Women-Focused Marketing
 
From Hope to Despair The Top 10 Reasons Businesses Ditch SEO Tactics.pptx
From Hope to Despair The Top 10 Reasons Businesses Ditch SEO Tactics.pptxFrom Hope to Despair The Top 10 Reasons Businesses Ditch SEO Tactics.pptx
From Hope to Despair The Top 10 Reasons Businesses Ditch SEO Tactics.pptx
 
No Cookies, No Problem - Steve Krull, Be Found Online
No Cookies, No Problem - Steve Krull, Be Found OnlineNo Cookies, No Problem - Steve Krull, Be Found Online
No Cookies, No Problem - Steve Krull, Be Found Online
 
Lily Ray - Optimize the Forest, Not the Trees: Move Beyond SEO Checklist - Mo...
Lily Ray - Optimize the Forest, Not the Trees: Move Beyond SEO Checklist - Mo...Lily Ray - Optimize the Forest, Not the Trees: Move Beyond SEO Checklist - Mo...
Lily Ray - Optimize the Forest, Not the Trees: Move Beyond SEO Checklist - Mo...
 
Mastering The Best Restaurant Advertising Campaigns Detailed Guide
Mastering The Best Restaurant Advertising Campaigns Detailed GuideMastering The Best Restaurant Advertising Campaigns Detailed Guide
Mastering The Best Restaurant Advertising Campaigns Detailed Guide
 
Data-Driven Personalization - Build a Competitive Advantage by Knowing Your C...
Data-Driven Personalization - Build a Competitive Advantage by Knowing Your C...Data-Driven Personalization - Build a Competitive Advantage by Knowing Your C...
Data-Driven Personalization - Build a Competitive Advantage by Knowing Your C...
 
AI Best Practices for Marketing HUG June 2024
AI Best Practices for Marketing HUG June 2024AI Best Practices for Marketing HUG June 2024
AI Best Practices for Marketing HUG June 2024
 
How to Start Affiliate Marketing with ChatGPT- A Step-by-Step Guide (1).pdf
How to Start Affiliate Marketing with ChatGPT- A Step-by-Step Guide (1).pdfHow to Start Affiliate Marketing with ChatGPT- A Step-by-Step Guide (1).pdf
How to Start Affiliate Marketing with ChatGPT- A Step-by-Step Guide (1).pdf
 
Global Growth Starts With Translation - How To Unlock Global Markets - Tim Kirby
Global Growth Starts With Translation - How To Unlock Global Markets - Tim KirbyGlobal Growth Starts With Translation - How To Unlock Global Markets - Tim Kirby
Global Growth Starts With Translation - How To Unlock Global Markets - Tim Kirby
 
What Software is Used in Marketing in 2024.
What Software is Used in Marketing in 2024.What Software is Used in Marketing in 2024.
What Software is Used in Marketing in 2024.
 
Breaking Silos To Break Bank: Shattering The Divide Between Search And Social
Breaking Silos To Break Bank: Shattering The Divide Between Search And SocialBreaking Silos To Break Bank: Shattering The Divide Between Search And Social
Breaking Silos To Break Bank: Shattering The Divide Between Search And Social
 
Influencer Marketing Master Class - Alexis Andreasik
Influencer Marketing Master Class - Alexis AndreasikInfluencer Marketing Master Class - Alexis Andreasik
Influencer Marketing Master Class - Alexis Andreasik
 
Embark on style journeys Indian clothing store denver guide.pptx
Embark on style journeys Indian clothing store denver guide.pptxEmbark on style journeys Indian clothing store denver guide.pptx
Embark on style journeys Indian clothing store denver guide.pptx
 
SEO in the AI Era - Trust, Quality and Content Discovery - Andy Crestodina
SEO in the AI Era - Trust, Quality and Content Discovery - Andy CrestodinaSEO in the AI Era - Trust, Quality and Content Discovery - Andy Crestodina
SEO in the AI Era - Trust, Quality and Content Discovery - Andy Crestodina
 
PickUp_conversational AI_Capex, Inc._20240610
PickUp_conversational AI_Capex, Inc._20240610PickUp_conversational AI_Capex, Inc._20240610
PickUp_conversational AI_Capex, Inc._20240610
 
Get admission in various courses and boost your employment opportunities.
Get admission in various courses and boost your employment opportunities.Get admission in various courses and boost your employment opportunities.
Get admission in various courses and boost your employment opportunities.
 
Mastering SEO for Google in the AI Era - Dennis Yu
Mastering SEO for Google in the AI Era - Dennis YuMastering SEO for Google in the AI Era - Dennis Yu
Mastering SEO for Google in the AI Era - Dennis Yu
 

How to block spam referral traffic in google analytics

  • 1. Blocking Spam Traffic with GTM http://tagmanager.google.com
  • 2. Remove all that junk in your analytics trunk!!
  • 3. First let’s replicate that junk Go to https://ga-dev- tools.appspot.com/hit-builder/ 1. Set client GA id in the tid field 2. Autogenerate the cid 3. Add 2 parameters Name= dp value= / Name= dr value= http://spam.com Open GA realtime overview
  • 4. Check that Spam Validate Hit in Hitbuilder Check that open GA report
  • 5. Let’s Filter! Keep only the Good Stuff
  • 6. Create New Tag in GTM 1. Title it setCookie 2. Choose Custom HTML 3. Paste Script into HTML field 1. Copy script from here. 4. Click continue
  • 8. 1. Choose More and then click New 2. Title it LandingPage 3. Choose Page View for event and trigger 4. Choose Some page views 5. Set referrer>does not contain> yourdomain.com 6. Click Create Trigger 7. Click Create Tag Create New Trigger continuing where you left off in GTM
  • 9. Confirm that Tag is Firing 1. Enter debug mode from dropdown under Publish 2. Enter client site thru Google Search and check for tag in bottom pane 3. Go into developer mode (press CTRL+Shift+I) 1. Under Resources choose cookies then client domain 2. Look for dev cookie
  • 10. Create a New Variable in GTM 1. Choose Variables in GTM then scroll to bottom to select new user defined variable 2. Title it “dev cookie” 3. Choose 1st party cookie 4. Title the variable “dev” 5. Click create variable 6. Refresh Debug Mode 7. Refresh Client url and go to the tag manager pane at bottom 8. Find the dev cookie under pageview then variables
  • 11. Let’s Create a Custom Dimension in GA1. Go to Client GA Admin View> Property Column choose Custom Definitions>Choose Custom Dimensions 2. Select New Custom Dimension 3. Name it “dev” 4. Set Scope to User 5. Ensure Active and Create 6. Pay attention to dimension number 1. Likely will be 1
  • 12. Include Dimension in Client GTM Analytics Tag 1. Choose the analytics tag firing on all pages 2. Edit Configure Tag section 3. Select More Settings>Custom Dimensions 4. Enter value from GA (likely 1) and set value to dev cookie. 5. Continue>Save tag
  • 13. Check that Variable 1. Refresh your GTM Debug Mode and Client Site 2. Using Google Tag Assistant Select the Analytics Tag 3. Select Pageview requests 4. Select Custom Metrics 5. Check for your custom dimension
  • 14. Create Filter in GA 1. Under Client GA Admin go to Views and Create a Test View 2. Create new filter in the new view 3. Title it “include cookied data” 4. Choose custom 5. Set to Include 6. Filter field search “dev” and select it 7. Set pattern to “notset” 8. Save. 9. Go to the new view realtime reporting. Resend the spam hit with the hitbuilder from earlier. It should not appear. Can also check main view to see if spam hit shows. If working apply filter to the main GA view.
  • 15. Spam Fatality Publish Your GTM Container And Say Goodbye to Spam Traffic in GA!! YouTube Tutorial