ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Sports and Recreation»
  • Equestrian, Dog Racing & Other Animal Sports


Updated on May 22, 2017


This is because you are using the old syntax gaq.push, which is for the Classic Analytics. You have actually implemented the newer version of GA called Universal Analytics, which uses a different syntax for sending events.

The correct code to use, according to the Google Developer information, it should be written like this:

ga('send', 'event', 'category', 'action', 'label', value);

So, using your example, I'd write it something like this:

ga('send', 'event', 'Popup', 'Click','Step1');

Event, category and action are mandatory, while label and value are optional.


You definitely need to push events into the dataLayer which you can then trigger a GA page view tag in GTM. So to push an event into the DL:


Then setup a trigger called 'vpv' which fires on a custom event called 'virtualPageView'. Add that trigger to a GA tag.

The best thing to do is also send through the details of the virtual page when you send the event. This way you can set up variables that pull these dataLayer property values into the page view call. So you might do this:

    'title':'contact us',

So you'd setup a variable called 'DL- page title' (for example) which is a dataLayer value of 'page.title' and another variable called 'DL - page url' which is a dataLayer value of 'page.url'.

You then setup a new Universal Analytics tag which has all your usual pageview settings but with 2 'Fields to Set' (under More Settings). Set 'title' to {{DL-page title}} and 'page' to {{DL - page url}}

Finally set the trigger to 'vpv' and you'll find everytime you push the event + data into the datalayer you'll get a pageView fired off with your virtual page's title and virtual url.


    0 of 8192 characters used
    Post Comment

    No comments yet.