simcal_ga_campaign_url

Google Analytics campaign URL.

Description

(string) simcal_ga_campaign_url( (string) $base_url, (string) $campaign, (string) $content, (bool) $raw = false ); 

Returns (string)

$url Full Google Analytics campaign URL

Parameters (4)

0. $base_url (string)
Plain URL to navigate to
1. $campaign (string)
GA campaign tracking value
2. $content (string)
GA content tracking value
3. $raw — Optional. (bool) => false
Use esc_url_raw instead (default = false)

Usage

  1. if ( !function_exists( 'simcal_ga_campaign_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'simple-calendar/includes/functions/admin.php'; 
  3.  
  4. // Plain URL to navigate to 
  5. $base_url = ''; 
  6.  
  7. // GA "campaign" tracking value 
  8. $campaign = ''; 
  9.  
  10. // GA "content" tracking value 
  11. $content = ''; 
  12.  
  13. // Use esc_url_raw instead (default = false) 
  14. $raw = false; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = simcal_ga_campaign_url($base_url, $campaign, $content, $raw); 
  18.  

Defined (1)

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

/includes/functions/admin.php