How to track accordion or tabs opens?

Like the title says,

How to track accordion or tabs opens?

What comes to my mind is adding a google analytics event code or something to the accordion somewhere?

Comments

  • Hello,
    What does it mean? You want to open it from another page?
    thanks
  • Let me clarify:

    Accordion item has tabs in it.
    Lets call them tab1, tab2 and tab3.
    I want to use google analytics to track tab opens. I want to know the frequency of clicks on different tabs. How many times tab1 has been clicked, how many times tab2 and so on.

    Do you understand?
  • I don't think that it will be possible to configure it, because we do not have this functionality inside the theme.
    We only have a place where you can leave the GA code, Theme Options > SEO

    Thanks
  • That is impossible.

    There has to be a place where I can manually add Event tracking code.
    Please ask around.
  • By the default BeTheme does not have functionality like that.
    As I asked the developer team, they never implemented code like that and the only way to make it work is by editing the theme files by attaching some parameter for GA into the HTML code of the accordion.

    Thanks
  • Hey,

    Editing theme files and pasting GA code into the accrodion is OK with me.

    Where do I find the accordion HTML code?
  • Well, surely you should be familiar with the functions directory inside the betheme directory.
    There you will find the theme-shortcodes.php file and builder directory.

    thanks
Sign In or Register to comment.