• Resolved koalarry

    (@koalarry)


    I’m redirecting to another site. Is there a way to track IP addresses while in maintenance mode? I’ve got Slimstat installed – but it doesn’t track while CMP is in maintenance mode.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ales

    (@alesmal)

    Hello, if you are using redirect after x seconds from CMP then you can embbed Slimstat analytics javascript into CMP page.

    But if you are using redirect with 0s, then it is not possible.

    Ales

    Thread Starter koalarry

    (@koalarry)

    I’ve only used the Slimstat pluggin. I’ve never hand-coded Slimstat’s javascript code so I have no idea what that code would be. Also, would this code be inserted into a CMP PHP file sitting somewhere? Or, would I insert the code here: CMP Settings –> SEO & Analytics ?

    Plugin Author Ales

    (@alesmal)

    By checking the plugin, the javascript comes in two parts, one is inline javascript, and second is the external file with analytics actual code.

    1. To get the inline part, go to your website in Chrome, right click anywhere and choose “view source code”. Find “slimstat” and copy whole part which looks like this:

    <script type='text/javascript'>
    /* <![CDATA[ */
    var SlimStatParams = {"ajaxurl":"https:\/\/niteothemes.com\/dev\/wp-admin\/admin-ajax.php","baseurl":"\/dev","extensions_to_track":"pdf,doc,xls,zip","outbound_classes_rel_href_to_not_track":"noslimstat,ab-item","ci":"YToxOntzOjEyOiJjb250ZW50X3R5cGUiO3M6NDoiaG9tZSI7fQ==.0d4af308ce883c35c2c653a751697063"};
    /* ]]> */
    </script>

    2. Insert this Javascript directly into CMP Content editor under text mode – https://imgur.com/a/DN4AyhJ

    3. Go to CMP Advanced Setup > Misc and insert https://cdn.jsdelivr.net/wp/wp-slimstat/tags/4.8.5.1/wp-slimstat.min.js this javascript into Head scripts. https://imgur.com/a/PkZUBMo

    That should do a trick, hopefully that will work.

    Ales

    Thread Starter koalarry

    (@koalarry)

    I’ll give that a try. By the way, is there a way to NOT have any background image?

    Plugin Author Ales

    (@alesmal)

    Sure, just change the Graphic Background option to solid color or gradient.

    Hi,

    Slimstat also gives you a way to attach the tracker to external pages. You’ll find the code you need to use under Slimstat > Settings > Tracker > External Pages. We’re looking at ways to track the Maintenance page. Stay tuned!

    Jason

    Plugin Author Ales

    (@alesmal)

    Hi @coolmann, that is something we could integrate to CMP page as another SEO option.
    Do you have any predefined actions or a function to render the Javascript code for tracking?

    Ales

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Track IP Addresses While in Maintenance Mode?’ is closed to new replies.