gtm4wp_admin_output_section

The Google Tag Manager for WordPress gtm4wp admin output section function.

Description

gtm4wp_admin_output_section( $args ); 

Parameters (1)

0. $args
The args.

Usage

  1. if ( !function_exists( 'gtm4wp_admin_output_section' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-tag-manager-for-wordpress/admin/admin.php'; 
  3.  
  4. // The args. 
  5. $args = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gtm4wp_admin_output_section($args); 
  9.  

Defined (1)

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

/admin/admin.php  
  1. function gtm4wp_admin_output_section( $args ) { 
  2. echo '<span class="tabinfo">'; 
  3.  
  4. switch( $args["id"] ) { 
  5. _e( 'This plugin is intended to be used by IT girls&guys and marketing staff. Please be sure you read the <a href="https://developers.google.com/tag-manager/" target="_blank">Google Tag Manager Help Center</a> before you startusingthis plugin.<br /><br />', 'duracelltomi-google-tag-manager' ); 
  6.  
  7. break;  
  8.  
  9. _e( "Here you can check what data is needed to be included in the dataLayer to be able to access them in Google Tag Manager", 'duracelltomi-google-tag-manager' ); 
  10. echo "<br />"; 
  11. printf( __( '* Browser,OSand Device data is providedusing<a href="%s">WhichBrowser</a> library.', 'duracelltomi-google-tag-manager' ), "http://whichbrowser.net/" ); 
  12. if ( version_compare( PHP_VERSION, '5.4.0' ) < 0 ) { 
  13. echo "<br />"; 
  14. _e( 'You areusingan <strong>outdated</strong>versionof PHP (5.3 or less). You <strong>should not turn on</strong> browser/device/os tracking as this can hurt your site. Please talk to your hosting and upgrade to PHP 5.4 or newer.', 'duracelltomi-google-tag-manager' ); 
  15.  
  16. break;  
  17.  
  18. _e( "Fire tags in Google Tag Manager on special events on your website", 'duracelltomi-google-tag-manager' ); 
  19. echo '<p style="font-weight: bold;">'; 
  20. _e( 'In October 2013 Google released a newfeaturecalled <a href="https://support.google.com/tagmanager/answer/3415369?hl=en" target="_blank">auto event tracking</a>. It is up to you how you use click events eitherusingGoogle\'s solution or the settings below.', 'duracelltomi-google-tag-manager' ); 
  21. echo '</p>'; 
  22.  
  23. break;  
  24.  
  25. _e( "Fire tags based on how the visitor scrolls through your page.", 'duracelltomi-google-tag-manager' ); 
  26. echo '<br />'; 
  27. printf( __( 'Based on the script originaly posted to <a href="%s">Analytics Talk</a>', 'duracelltomi-google-tag-manager' ) , "http://cutroni.com/blog/2012/02/21/advanced-content-tracking-with-google-analytics-part-1/"); 
  28.  
  29. break;  
  30.  
  31. _e( "Here you can control which types of tags and macros can be executed on your site regardless of what tags are included in your container on the Google Tag Manager site. Use this to increase security!", 'duracelltomi-google-tag-manager' ); 
  32. echo '<br />'; 
  33. _e( "Do not modify if you do not know what to do since it can cause issues in your tag deployment!", 'duracelltomi-google-tag-manager' ); 
  34. echo '<br />'; 
  35. _e( "Blacklisting of macros only work if you enable blacklist or whilelist of tags on the previous tab.", 'duracelltomi-google-tag-manager' ); 
  36. echo '<br />'; 
  37. _e( "Uncheck a row to blacklist a macro type.", 'duracelltomi-google-tag-manager' ); 
  38.  
  39. break;  
  40.  
  41. _e( "Google Tag Manager for WordPress can integrate with several popular plugins. Please check the plugins you would like to integrate with:", 'duracelltomi-google-tag-manager' ); 
  42.  
  43. break;  
  44.  
  45. _e( "You usually do not need to modify thoose settings. Please be carefull while hacking here.", 'duracelltomi-google-tag-manager' ); 
  46.  
  47. break;  
  48.  
  49. _e( "Some info about the author of this plugin", 'duracelltomi-google-tag-manager' ); 
  50.  
  51. break;  
  52. } // end switch 
  53.  
  54. echo '</span>';