Analytics: add 'Blog Card Click' custom Plausible event to blog cards — fires on click with post ID and area as props
This commit is contained in:
+5
-1
@@ -4271,7 +4271,11 @@
|
||||
return (
|
||||
'<a href="' +
|
||||
p.link +
|
||||
'" class="blog-card" style="text-decoration:none">' +
|
||||
'" class="blog-card" style="text-decoration:none" onclick="plausible(\'Blog Card Click\',{props:{post:\'' +
|
||||
p.id.replace(/'/g, "\\'") +
|
||||
'\',area:\'' +
|
||||
p.area.replace(/'/g, "\\'") +
|
||||
"'}})'>"
|
||||
'<span style="display:flex;gap:6px;flex-wrap:wrap;align-self:flex-start">' +
|
||||
'<span class="blog-card-area ' +
|
||||
blogAreaClass(p.area) +
|
||||
|
||||
Reference in New Issue
Block a user