### UTM Code URL Query Example
Source: https://www.exactmetrics.com/docs/how-to-create-campaign-urls-with-utm-codes-in-exactmetrics
This example demonstrates the standard format of a UTM code using a URL query parameter (?).
```html
http://www.example.com?utm_source=google
```
--------------------------------
### UTM Code URL Fragment Example
Source: https://www.exactmetrics.com/docs/how-to-create-campaign-urls-with-utm-codes-in-exactmetrics
This example shows how a UTM code appears when using a URL fragment (#) instead of a query parameter.
```html
http://www.example.com#utm_source=google
```
--------------------------------
### UTM Code Example URLs
Source: https://www.exactmetrics.com/docs/utm-tracking-code-frequently-asked-questions
Examples of UTM tracking URLs for various campaign scenarios, including source, medium, campaign, and content parameters.
```URL
https://yoursite.com/?utm_source=exampleblog&utm_medium=referral&utm_campaign=summer-sale
```
```URL
https://yoursite.com/?utm_source=newsletter1&utm_medium=email&utm_campaign=summer-sale
```
```URL
https://yoursite.com/?utm_source=newsletter1&utm_medium=email&utm_campaign=summer-sale&utm_content=toplink
```
```URL
https://yoursite.com/?utm_source=push-notification&utm_medium=referral&utm_campaign=summer-sale
```
--------------------------------
### Example UTM Tracking URL
Source: https://www.exactmetrics.com/docs/utm-tracking-code-frequently-asked-questions
A sample URL demonstrating the structure of UTM tracking parameters. This format is used when creating links for marketing campaigns to track traffic sources, mediums, and campaigns in analytics.
```url
https://yoursite.com/?utm_source=exampleblog&utm_medium=referral&utm_campaign=summer-sale
```
--------------------------------
### Verify Universal Analytics Cross-Domain Tracking Configuration
Source: https://www.exactmetrics.com/docs/setup-cross-domain-tracking
Inspect your site's source code to verify that the Universal Analytics cross-domain tracking setup, specifically the 'linker' parameter with your additional domains, is correctly in place.
```javascript
__gtagTracker(
'config',
'UA-1234567-1',
{
"forceSSL":"true",
"link_attribution":"true",
"linker":"{\"domains\":[\"myothercooldomain.com\"]}",
"page_path":"location.pathname + location.search + location.hash"
} );
```
--------------------------------
### Customize Call-to-Action Link Tracking
Source: https://www.exactmetrics.com/docs/custom-link-attribution
Add custom event tracking to a link to ensure it's tracked by ExactMetrics. This example customizes the event category, action, and label for a call-to-action link.
```html
Learn More
```
```html
Learn More
```
--------------------------------
### Create a Site Note with ExactMetrics
Source: https://www.exactmetrics.com/docs/getting-stated-with-the-site-notes-automation
Use the exactmetrics_add_site_note() function to create a new site note. Ensure all required array keys like 'note', 'author_id', 'date', 'category_id', 'media_id', and 'important' are correctly populated.
```php
$args = array(
'note' = 'Updated theme heading',
'author_id'= 1,
'date' = '2024-05-16',
'category_id' = 5,
'media_id' = 10,
'important' = true,
);
exactmetrics_add_site_note( $args );
```
--------------------------------
### Disable ExactMetrics Dashboard Widget
Source: https://www.exactmetrics.com/docs/how-to-disable-the-monsterinsights-dashboard-widget
Use this filter to disable the ExactMetrics dashboard widget. This is recommended for WordPress multi-site installations.
```php
add_filter( 'exactmetrics_show_dashboard_widget', '__return_false');
```
--------------------------------
### Verify GA4 Cross-Domain Tracking Configuration
Source: https://www.exactmetrics.com/docs/setup-cross-domain-tracking
Check your site's source code to confirm that the GA4 cross-domain tracking configuration, including the 'linker' parameter with your other domains, is correctly implemented.
```javascript
__gtagTracker(
'config',
'G-XXXXXXXXXX',
{
"forceSSL":"true",
"link_attribution":"true",
"linker":"{\"domains\":[\"myothercooldomain.com\"]}",
"page_path":"location.pathname + location.search + location.hash"
} );
```
--------------------------------
### exactmetrics_add_site_note() function
Source: https://www.exactmetrics.com/docs/getting-stated-with-the-site-notes-automation
This function allows you to create a site note with various details. It accepts an array of key-value pairs to define the note's content, author, date, category, media attachment, and importance.
```APIDOC
## Creating a Site Note
To create a site note, use the `exactmetrics_add_site_note()` function. This function needs an array with specific key-value pairs. Let’s break down these keys and what each one means:
### Array Keys and Values
* **description (string)** : The title or content of the site note. This is required.
* **author_id (int)** : The ID of the person creating the note.
* **date (string)** : The date and time of the note. Use the format Y-m-d H:i:s. If you don’t specify a date, it will default to the current time.
* **category_id (int)** : The term ID from the `exactmetrics_note_category` taxonomy.
* **media_id (int)** : The attachment post ID. _The media needs to be uploaded in the WordPress media library._
* **important (bool)** : Whether the note is important. The default value is `false`.
### Example Usage
Here’s an example of how to create a site note using the function:
```php
$args = array(
'note' => 'Updated theme heading',
'author_id' => 1,
'date' => '2024-05-16',
'category_id' => 5,
'media_id' => 10,
'important' => true,
);
exactmetrics_add_site_note( $args );
```
```