Store Locator Plus® for WordPress Forums Store Locator Plus Possible to track searches as an event in Google Analytics?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45353
    David
    Participant

    I’m wondering what piece of code to use in the Event set up in Analytics that represents the search button. Usually when tracking a button click as an event you would use the href code but I’m not seeing that when looking at the source code on our page. Is there a way to do this?

    http://plantsomethingmaine.org/get-planting/

    #45357
    Cici
    Keymaster

    Suggest inspecting the source code using Firefox.

    P.S. I inspected your site using Firefox and saw that you have some errors on your site

    Uncaught SyntaxError: Unexpected token < gtm.js Failed to load resource: the server responded with a status of 404 () http://plantsomethingmaine.org/favicon.ico?lbisphpreq=1 Failed to load resource: the server responded with a status of 404 (Not Found)

    #45369
    David
    Participant

    Thanks. I was using Firefox to view the source but could not identify the button as an href or link which is what I would need for an Analytics Event, I’m not a developer though, so in the form section of the source code, what I need may be there but I’m just not recognizing it.

    #45378
    Cici
    Keymaster

    The search or find locations button is not an href link. It is a snippet of code with shortcodes. I am not a SW developer either. The Experience add-on allows you to change the search bar layout, results layout,map and do css.

    https://docs.storelocatorplus.com/blog/search-layout-shortcodes-and-attributes/

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Possible to track searches as an event in Google Analytics?’ is closed to new replies.