SlideShare a Scribd company logo
1 of 5
To provide for click tracking in DNN using Google Analytics, follow these steps.

Upgrade the Anayltics with Oliver Hines module at
   http://oliverhine.com/DotNetNuke/Modules/GoogleAnalyticsEvolved.aspx



                                                 Which generates this before the </body>…


                                         <script type="text/javascript">
                                         var _gaq = _gaq || []; _gaq.push(['_setAccount', "UA-4423739-1"]);
                                         _gaq.push(['_trackPageview']);
                                         (function() { var ga = document.createElement('script'); ga.src = ('https:' ==
                                         document.location.protocol ? 'https://ssl' : 'http://www') + '.google-
                                         analytics.com/ga.js'; ga.setAttribute('async', 'true');
                                         document.documentElement.firstChild.appendChild(ga); })();
                                         </script>




      SolTech is a leading provider of custom software development, and custom DotNetNuke (DNN)
     services. Contact SolTech (404) 601-6000 if you need help building a feature rich web2.0 portal.
Adding event tracking




 By default the code is tracking page views.
 But it can be enhanced to track clicks or any other event.

 For example .. Place this anywhere in your code and it will add the event to the
 Analytics call above..

 <script type="text/javascript">
 _gaq.push(['_trackEvent', „EventCategory', „EventName', „Comment']);
 </script>

 When executed it will generate an event in analytics .                   More examples ..

                           SolTech. Inc   http://www.soltech.net   (404) 601-6000
Other event examples
Track a URL and an event in one. For example, place this on the thank-you page
for a form submission

<script type="text/javascript">
_gaq.push(['_trackPageview', '/resumesubmitted.aspx‟]);
_gaq.push(['_trackEvent', 'Jobs', 'Viewed', 'Resume Submitted']);
</script>

NOTE : The url resumesubmitted.aspx does not have to be a REAL url. It can be
made up to describe the page you are on. Its used only by google for reporting
purposes.

More important … go to ANY <a href on your site, wether it be a link or a button
and add …

onClick="_gaq.push(['_trackEvent', „Categoryname', „Event', „Some comment']);“
Like
onClick="_gaq.push(['_trackEvent', „Blog', 'Click', „Blog Visit']);"



                             SolTech. Inc   http://www.soltech.net   (404) 601-6000
Analytics Reporting of Events
In analytics reporting, the links added with

_gaq.push(['_trackPageview', '/Careers/AvailablePositons.aspx‟]);

Display in the “Content – Overview”

While the
_gaq.push(['_trackEvent', 'Jobs', 'Viewed', 'Resume Submitted']);
And
onClick="_gaq.push(['_trackEvent', „Blog', 'Click', „Blog Visit']);“
Display in the Content – Event tracking section of the analytics report.




In summary … using injected events with analytics can help one track almost any activity within any
page of the website.

                                      SolTech. Inc   http://www.soltech.net    (404) 601-6000
SolTech is a DNN partner

  SolTech Inc, is an Atlanta-based DNN partner with over 60 full time
  programmers covering the full spectrum of software development.

  Besides DNN services that provide complete CMS backed
  websites and custom modules, we also provide services from .NET,
  and JAVA, through mobile, iPhone and iPad apps to complete “from
  scratch” ERP systems.

  We should be talking.

  1-404-601-6000
  www.soltech.net




                          SolTech. Inc   http://www.soltech.net   (404) 601-6000

More Related Content

Viewers also liked

Alice Start Part Four
Alice Start Part FourAlice Start Part Four
Alice Start Part FourCraig Perkins
 
First quarter 2010
First quarter 2010First quarter 2010
First quarter 2010SKF
 
Internet presentation q1_2010
Internet presentation q1_2010Internet presentation q1_2010
Internet presentation q1_2010SKF
 
Configuring Facebook Orkut On Jaamun
Configuring Facebook Orkut On JaamunConfiguring Facebook Orkut On Jaamun
Configuring Facebook Orkut On JaamunJaamun
 
US Bibliotheken
US BibliothekenUS Bibliotheken
US BibliothekenD Askey
 
Care safety quiz
Care safety quizCare safety quiz
Care safety quizadisg
 
Tipos de interés cero
Tipos de interés ceroTipos de interés cero
Tipos de interés ceroSofia Square
 
Report Telstra Teleworking Study
Report Telstra Teleworking StudyReport Telstra Teleworking Study
Report Telstra Teleworking StudyTurlough Guerin
 
Designing Special Feature Pages
Designing Special Feature PagesDesigning Special Feature Pages
Designing Special Feature PagesJackie Hai
 
2008 Fiatech Ceti Awards Smccv
2008   Fiatech Ceti Awards   Smccv2008   Fiatech Ceti Awards   Smccv
2008 Fiatech Ceti Awards Smccvsemdanat
 
Cordoba 107 bahia de rosas algarrobo
Cordoba 107 bahia de rosas algarroboCordoba 107 bahia de rosas algarrobo
Cordoba 107 bahia de rosas algarrobofranciscoalvarezh
 

Viewers also liked (18)

Alice Start Part Four
Alice Start Part FourAlice Start Part Four
Alice Start Part Four
 
First quarter 2010
First quarter 2010First quarter 2010
First quarter 2010
 
The press power point
The press power pointThe press power point
The press power point
 
Internet presentation q1_2010
Internet presentation q1_2010Internet presentation q1_2010
Internet presentation q1_2010
 
Unidad I
Unidad  IUnidad  I
Unidad I
 
Shakespeare’s women
Shakespeare’s women Shakespeare’s women
Shakespeare’s women
 
Gunosy2015-06-03
Gunosy2015-06-03Gunosy2015-06-03
Gunosy2015-06-03
 
Configuring Facebook Orkut On Jaamun
Configuring Facebook Orkut On JaamunConfiguring Facebook Orkut On Jaamun
Configuring Facebook Orkut On Jaamun
 
Nouns
NounsNouns
Nouns
 
US Bibliotheken
US BibliothekenUS Bibliotheken
US Bibliotheken
 
Care safety quiz
Care safety quizCare safety quiz
Care safety quiz
 
Lincoln
LincolnLincoln
Lincoln
 
Tipos de interés cero
Tipos de interés ceroTipos de interés cero
Tipos de interés cero
 
Report Telstra Teleworking Study
Report Telstra Teleworking StudyReport Telstra Teleworking Study
Report Telstra Teleworking Study
 
Test Presentation
Test PresentationTest Presentation
Test Presentation
 
Designing Special Feature Pages
Designing Special Feature PagesDesigning Special Feature Pages
Designing Special Feature Pages
 
2008 Fiatech Ceti Awards Smccv
2008   Fiatech Ceti Awards   Smccv2008   Fiatech Ceti Awards   Smccv
2008 Fiatech Ceti Awards Smccv
 
Cordoba 107 bahia de rosas algarrobo
Cordoba 107 bahia de rosas algarroboCordoba 107 bahia de rosas algarrobo
Cordoba 107 bahia de rosas algarrobo
 

Recently uploaded

AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...FIDO Alliance
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxFIDO Alliance
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaWSO2
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseWSO2
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Paige Cruz
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingWSO2
 
JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuidePixlogix Infotech
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfdanishmna97
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024Lorenzo Miniero
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityVictorSzoltysek
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightSafe Software
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformWSO2
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 

Recently uploaded (20)

AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate Guide
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 

Advanced Click and Events Tracking for Google Analytics in Dotnetnuke - by SolTech

  • 1. To provide for click tracking in DNN using Google Analytics, follow these steps. Upgrade the Anayltics with Oliver Hines module at http://oliverhine.com/DotNetNuke/Modules/GoogleAnalyticsEvolved.aspx Which generates this before the </body>… <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', "UA-4423739-1"]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google- analytics.com/ga.js'; ga.setAttribute('async', 'true'); document.documentElement.firstChild.appendChild(ga); })(); </script> SolTech is a leading provider of custom software development, and custom DotNetNuke (DNN) services. Contact SolTech (404) 601-6000 if you need help building a feature rich web2.0 portal.
  • 2. Adding event tracking By default the code is tracking page views. But it can be enhanced to track clicks or any other event. For example .. Place this anywhere in your code and it will add the event to the Analytics call above.. <script type="text/javascript"> _gaq.push(['_trackEvent', „EventCategory', „EventName', „Comment']); </script> When executed it will generate an event in analytics . More examples .. SolTech. Inc http://www.soltech.net (404) 601-6000
  • 3. Other event examples Track a URL and an event in one. For example, place this on the thank-you page for a form submission <script type="text/javascript"> _gaq.push(['_trackPageview', '/resumesubmitted.aspx‟]); _gaq.push(['_trackEvent', 'Jobs', 'Viewed', 'Resume Submitted']); </script> NOTE : The url resumesubmitted.aspx does not have to be a REAL url. It can be made up to describe the page you are on. Its used only by google for reporting purposes. More important … go to ANY <a href on your site, wether it be a link or a button and add … onClick="_gaq.push(['_trackEvent', „Categoryname', „Event', „Some comment']);“ Like onClick="_gaq.push(['_trackEvent', „Blog', 'Click', „Blog Visit']);" SolTech. Inc http://www.soltech.net (404) 601-6000
  • 4. Analytics Reporting of Events In analytics reporting, the links added with _gaq.push(['_trackPageview', '/Careers/AvailablePositons.aspx‟]); Display in the “Content – Overview” While the _gaq.push(['_trackEvent', 'Jobs', 'Viewed', 'Resume Submitted']); And onClick="_gaq.push(['_trackEvent', „Blog', 'Click', „Blog Visit']);“ Display in the Content – Event tracking section of the analytics report. In summary … using injected events with analytics can help one track almost any activity within any page of the website. SolTech. Inc http://www.soltech.net (404) 601-6000
  • 5. SolTech is a DNN partner SolTech Inc, is an Atlanta-based DNN partner with over 60 full time programmers covering the full spectrum of software development. Besides DNN services that provide complete CMS backed websites and custom modules, we also provide services from .NET, and JAVA, through mobile, iPhone and iPad apps to complete “from scratch” ERP systems. We should be talking. 1-404-601-6000 www.soltech.net SolTech. Inc http://www.soltech.net (404) 601-6000