Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter prtksng

    (@prtksng)

    Alright @vmarko
    Thanks a lot for the help.
    I’d try to find a workaround.

    Thread Starter prtksng

    (@prtksng)

    Yes, I use php-fpm. But the URL Rewrite does not show not-detected. It shows disabled.
    And when I remove the rule from security2.conf, it shows enabled again.
    It means w3tc plugin is able to detect the URL Rewrite even with php-fpm.
    But why does it shows disabled when the rule is added in security2.conf? Does it actually disable URL Rewrite?

    Thread Starter prtksng

    (@prtksng)

    Also, I’m using newspaper theme which offers the functionality to server different version of the website depending upon the device. So I have different cache files for mobile and PC.

    In some cases, the website opens correctly on PC after clearing cache and all, but when accessed over mobile phone, it starts behaving as I explained earlier and vice-versa some times.

    Then, I turned off the mobile theme plugin and served the same content regardless of device and it worked just fine — no issues, whatsoever. Is there any way to set up this plugin in a way that it look for different cache files for different devices with custom coding if requested?

    Thread Starter prtksng

    (@prtksng)

    I edited this topic 4-5 times in a short time span which marked it as suspicious and put it under moderation. I couldn’t wait so I created an identical one. Reply to this was earlier than that but I didn’t notice and checked the other one first where I’ve marked my issue as solved.
    So if someone lands on this post in future, along with the above advice, this can also be checked and looked into.

    Thread Starter prtksng

    (@prtksng)

    Hello again. @reneesoffice

    I didn’t know that the type attribute can be modified by me(so stupid).

    I though this is added and controlled by plugin developers and can’t be modified without having to open and change the code. I overlooked the purpose textbox labelled type in the amp analytics section and put whatever I pleased.

    Also about the src attribute for script tag, I failed to consider the fact that this code can be anywhere on the page and not only nearby my analytic JSON configuration like in the documentation. Anyway, I searched the code in the view source page and found it which I, previously, though you guys forgot to add.

    I changed the type to gtag as you suggested and voila! it worked.

    So thanks a lot for the help. I would’ve never known that type is of great significance and not meant for the categorizing purpose which I mistakenly considered it to be.

    Thanks again and have a good day.

    Thread Starter prtksng

    (@prtksng)

    Hi, @reneesoffice .

    I am using Newspaper theme and they have a module for amp wherein there’s an option to put analytics code. The theme completely rely on this plugin and therefore, I think the code should work the same regardless of where it’s put. Theme’s amp module or this plugin’s analytics section.

    Still, to be as accurate as possible, I cut the code from theme’s module and pasted it into the plugin’s analytics section. And I noticed that the id you mentioned was gone. So, apparently, it was added by Newspaper theme.

    However, the type is still GoogleAnalytics.

    The point is it’s not working.

    This is the screenshot of the code that I put in the analytics section.

    And, this is the screenshot of the source code after replacing the code.

    My speculation is that the reason that this code is failing to work is because there’s no src attribute for the script tag for job completion and complete functioning and communication.

Viewing 6 replies - 1 through 6 (of 6 total)