WordPress.org

Ready to get started?Download WordPress

Forums

Analytics not tracking (3 posts)

  1. DSS-Analytics
    Member
    Posted 2 months ago #

    I have my analytics loaded in the footer in the correct place, but they are not tracking. I've been told that I need to activate the footer before it will start tracking. How do I activate a footer.

    There is nothing that says activate footer as a widget that I can drag to the widget area. The analytics are loaded correctly, I just need to know how to activate them.

    site: http://www.dssanalytics.com

  2. samsemi
    Member
    Posted 2 months ago #

    Maybe your theme lacks the wp_footer function.

    https://codex.wordpress.org/Function_Reference/wp_footer

  3. DSS-Analytics
    Member
    Posted 2 months ago #

    Thanks for your help and advice. I did look for the hook. I think I have that already.

    This what my footer looks like:

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the id=main div and all content
     * after.  Calls sidebar-footer.php for bottom widgets.
     *
     * @package Cryout Creations
     * @subpackage mantra
     * @since mantra 0.5
     */
    ?>	<div style="clear:both;"></div>
    
    	</div> <!-- #forbottom -->
    	</div><!-- #main -->
    
    	<footer id="footer" role="contentinfo">
    		<div id="colophon">
    
    			<?php get_sidebar( 'footer' );?>
    
    		</div><!-- #colophon -->
    
    		<div id="footer2">
    
    			<?php cryout_footer_hook(); ?>
    
    		</div><!-- #footer2 -->
    
    	</footer><!-- #footer -->
    
    </div><!-- #wrapper -->
    
    <?php	wp_footer(); ?>
    <!--DSS Analytics SNIPPET//-->
    //SETTING PHP COOKIE
    if ($_GET['MyID']) {setcookie('MyID', $_GET['MyID'],time() + (10 * 365 * 24 * 60 * 60));}
    <script type="text/javascript">
    //<![CDATA[
    var DID=231878;
    var MyID='<?=$_COOKIE['MyID;]?>’;
    var pcheck=(window.location.protocol == "https:") ? "https://stats.sa-as.com/live.js":"http://stats.sa-as.com/live.js";
    document.writeln('<scr'+'ipt src="'+pcheck+'" type="text\/javascript"><\/scr'+'ipt>');
    //]]>
    </script>
    <!--DSS Analytics SNIPPET//-->
    
    </body>
    </html>

    [Moderator Note: Please post code or markup between backticks or use the code button. Or better still - use a pastebin. Your posted code may now have been permanently damaged by the forum's parser.]

Reply

You must log in to post.

About this Topic