S
S
Sergey Bard2017-05-25 14:39:28
Google
Sergey Bard, 2017-05-25 14:39:28

Tagmanager does not work on the mobile version of the site?

Hello. I faced such a problem, I add to the tagmanager the tracking of a button when clicking on it, then I add a goal with the corresponding category and action to the analytics
and I'm testing ... There is no result, I change it to another button, it works. The problem is still the same when you enter from a computer, then the site code is one, and when you enter from a mobile phone (only from a mobile phone or an emulator, because when I set the size of the mobile phone in toggle device toolbar chrome, it shows the same version from the computer, and when you enter from the phone, then there are new buttons and the code is generally different), I honestly see this for the first time (still a beginner)), but for example, I only know that when the site is made adaptive, then all classes, etc. remain the same, they just write different css for different sizes, but here the classes and in general everything changes. Here is an example code from a computer

<div id="g_screen">
    <div id="g_menu" class="mode_splash">
        <div class="wrap_topBar">
            <div class="wrap_page">    
                <div class="wrap_cityTabs">
                    <a href="#" class="item_city state_active">XXX</a>
                    <a href="#" class="item_city ">XXX</a>
                    <a href="#" class="item_city ">XXX</a>
                    <a href="#" class="item_city ">XXX</a>  
                </div>
            </div>
        </div>
    </div>
</div>

from a mobile phone
<div id="g_screen">
  <a href="tel: 999999999" id="callMe" class="nav-down">
      <div class="button_callMe">
        <span class="box_icon icon-basic-smartphone"></span>
        <span class="text_label">Позвонить нам</span>
        </div>
    </a>
</div>

So to the question, there is one button on the site that is the same everywhere, I tested on it whether I configured the tagmanager and analytics correctly, but when I switch to the button that is only in the mobile version, nothing works, this is due to the fact that when loading page initially there is no this button ?, maybe someone had a similar problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Agapov, 2017-05-25
@oleg_agapov

What is the trigger? There seems to be All Clicks and Just Links. They work a little differently depending on the nesting of the link in other tags.
UPD. By the way, if the classes change, then you need to change the triggers to the corresponding classes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question