gglnltcs_tracking_code_tab

The BestWebSoft Google Analytics gglnltcs tracking code tab function.

Description

gglnltcs_tracking_code_tab( $self_redirect ); 

Parameters (1)

0. $self_redirect
The self redirect.

Usage

  1. if ( !function_exists( 'gglnltcs_tracking_code_tab' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bestwebsoft-google-analytics/bws-google-analytics.php'; 
  3.  
  4. // The self redirect. 
  5. $self_redirect = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gglnltcs_tracking_code_tab($self_redirect); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bws-google-analytics.php  
  1. function gglnltcs_tracking_code_tab( $self_redirect ) {  
  2. /** Print insert tracking Code Table */ ?> 
  3. <table id="gglnltcs-tracking-id-table" class="gglnltcs"> 
  4. <tr> 
  5. <th> 
  6. <h3> 
  7. <label for="gglnltcs-blog-tracking"><?php _e( 'Insert tracking Code To Your Blog', 'gglnltcs' ); ?></label> 
  8. </h3> 
  9. </th> 
  10. </tr> 
  11. <tr> 
  12. <td> 
  13. <?php $tracking_id = gglnltcs_print_tracking_id_field( $self_redirect ); ?>  
  14. </td> 
  15. </tr> 
  16. </table><?php 
  17. if ( ! $tracking_id ) { ?> 
  18. <ol id="gglnltcs-tracking-id-instructions"> 
  19. <p><?php _e( 'If you want to enable tracking and collect statistic from the', 'gglnltcs' ); ?> <strong>"<?php bloginfo( 'name' ); ?>"</strong>, <?php _e( 'you need to insert tracking code to your blog. To do this you should follow next steps', 'gglnltcs' ); ?>:</p> 
  20. <li><a href="http://www.google.com/accounts/ServiceLogin?service=analytics" target="_blank"><?php _e( 'Sign in', 'gglnltcs' ); ?></a> <?php _e( 'to your Google Analytics account. Click ', 'gglnltcs' ); ?> <strong>Admin</strong> <?php _e( 'in the menu bar at the top of any page.', 'gglnltcs' ); ?></li> 
  21. <li><?php _e( 'In the', 'gglnltcs' ); ?> <em><?php _e( 'Account column', 'gglnltcs' ); ?></em>, <?php _e( 'select the account from the dropdown that you want to add the property to.', 'gglnltcs' ); ?></li> 
  22. <li><?php _e( 'In the dropdown in the', 'gglnltcs' ); ?> <em><?php _e( 'Property column', 'gglnltcs' ); ?></em>, <?php _e( 'click', 'gglnltcs' ); ?> <strong>Create new property</strong>.</li> 
  23. <li><?php _e( 'Select', 'gglnltcs' ); ?> <strong>Website</strong>.</li> 
  24. <li><?php _e( 'Select a tracking method. Click either', 'gglnltcs' ); ?> <strong>Universal Analytics</strong> <?php _e( 'or', 'gglnltcs' ); ?> <strong>Classic Analytics</strong>. <?php _e( 'We strongly recommend Universal Analytics.', 'gglnltcs' ); ?></li> 
  25. <li><?php _e( 'Enter the', 'gglnltcs' ); ?> <strong><?php _e( 'name of your Wordpress blog.', 'gglnltcs' ); ?></strong></li> 
  26. <li><?php _e( 'Enter the', 'gglnltcs' ); ?> <strong>Website URL</strong> <?php _e( 'of your blog', 'gglnltcs' ); ?> <code><?php echo str_replace( 'http://', '', site_url( '', 'http' ) ); ?></code></li> 
  27. <li><?php _e( 'Select an', 'gglnltcs' ); ?> <strong>Industry Category</strong></li> 
  28. <li><?php _e( 'Select the', 'gglnltcs' ); ?> <strong>Reporting Time Zone</strong></li> 
  29. <li><?php _e( 'Click', 'gglnltcs' ); ?> <strong>Get Tracking ID</strong>.</li> 
  30. <li><?php _e( 'Copy', 'gglnltcs' ); ?> <strong>Tracking ID</strong> <?php _e( 'that looks like', 'gglnltcs' ); ?> <span class="gglnltcs-tracking-id">UA-xxxxx-y</span> <?php _e( 'and past it to the field above.', 'gglnltcs' ); ?></li> 
  31. <li><?php _e( 'Check', 'gglnltcs' ); ?> <strong><?php _e( 'Add tracking Code To Your Blog', 'gglnltcs' ); ?></strong> <?php _e( 'checkbox (if not checked) and click', 'gglnltcs' ); ?> <strong><?php _e( 'Save Changes', 'gglnltcs' ); ?></strong> <?php _e( 'button.', 'gglnltcs' ); ?> </li> 
  32. </ol><?php 
  33. /** Log out field. */