BSF_Analytics::get_usage_doc_link( string $product_key, string $context = 'notice' )
Get usage doc link with UTM parameters.
Description
Appends product-specific UTM params to the default usage tracking URL so we can attribute which plugin’s link was clicked.
Parameters
- $product_key
-
(string) (Required) Product key (e.g., 'spectra', 'surerank').
- $context
-
(string) (Optional) Where the link appears ('notice' or 'settings').
Default value: 'notice'
Return
(string) Full URL with UTM parameters.
Source
File: inc/lib/bsf-analytics/class-bsf-analytics.php
public function get_usage_doc_link( $product_key, $context = 'notice' ) {
return add_query_arg(
array(
'utm_source' => $product_key,
'utm_medium' => $context,
'utm_campaign' => 'usage_tracking',
),
$this->usage_doc_link
);
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.1.23 | Introduced. |