Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fathom-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function fathom_enqueue_js_snippet()
function fathom_add_data_attributes_to_js_script( $tag, $handle, $src )
{
if ( 'fathom-snippet' === $handle ) {
$attributes = ' data-site="' . fathom_get_site_id() . '" ' . exclude_fathom_script_from_cookiebot();
$attributes = ' data-site="' . esc_attr( fathom_get_site_id() ) . '" ' . exclude_fathom_script_from_cookiebot();

if ( get_option( FATHOM_IGNORE_CANONICAL ) ) {
$attributes .= ' data-canonical="false"';
Expand Down