Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying AngularJS Deployment Essentials
  • Table Of Contents Toc
AngularJS Deployment Essentials

AngularJS Deployment Essentials

By : Zachariah Moreno
3 (1)
close
close
AngularJS Deployment Essentials

AngularJS Deployment Essentials

3 (1)
By: Zachariah Moreno

Overview of this book

If you are a web developer, this handy guide will empower you to quickly learn the fundamentals of AngularJS development and deployment.
Table of Contents (10 chapters)
close
close
9
Index

Adding support to Google Analytics


Adding Google Analytics to a web application is typically a straightforward process. However, when you make the jump to a Single Page Application (SPA) framework, such as AngularJS, things get a little more complicated for Google Analytics. Because of Angular's ng-view directive (within your index.html) injecting content upon route changes, the tracking necessary for Google Analytics does not get updated upon such events. Luckily, Angular's community has stepped up to this challenge and produced a third-party module called angular-google-analytics that resolves the challenges faced in this endeavor. The angular-google-analytics module resolves our worries by providing a service that sends a new pageview event to Google Analytics whenever your Angular application's $location.path() changes.

Setting up the angular-google-analytics module

I'll assume that you already have a Google account with a Google Analytics site set up and ready to receive data. This means...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
AngularJS Deployment Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon