Track ZIP Code Searches as Events in Google Analytics

With Mapply, you can integrate it with Google Analytics to track your customer's searches.

This will create a new event every time someone performs a search. The Action will be ZIP-Search, and the Label will be the actual ZIP Code.


At this time, Mapply is unavailable for new installations. If you are currently using Mapply, you will be able to continue using the app as your account will now be grandfathered.



Tracking Zip Code Searches

  1. Set up a Google Analytics Account.
  2. Copy your Tracking ID.


    The tracking ID will appear as: UA-XXXXXXXX-Y

    If you already have a Google Analytics account, you can get the tracking ID by navigating to Admin > Tracking Info > Tracking Code

  3. Visit the Mapply Account Page. Log in if necessary.

    log in

  4. Select Display Settings.

    select display settings

  5. Copy and paste your Tracking ID into the Page Header HTML section of the Display Settings.

    copy and paste your tracking ID

  6. Copy and paste this code into the Page Footer HTML section of the Display Settings:

    jQuery(function () { 
    var zip = jQuery('#address_search').val(); 
    ga('send', { 
    hitType: 'event', 
    eventCategory: 'Locator', 
    eventAction: 'ZIP-Search', 
    eventLabel: zip 

    copy and paste this code

  7. Select Save.
Was this article helpful?
0 out of 0 found this helpful