
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
swup-gtag-plugin
Advanced tools
Swup Google Analytics plugin. Updated for Global Site Tag (gtag.js).
Google Analytic plugin for Global Site Tag (gtag.js). Gtag plugin triggers pageview event on contentReplaced
(on each page change). Note that this event is not triggered at the first load, so the first page view must be triggered elsewhere. However, it should be noted that pageview event is called when gtag.js is installed.
Simplified code run by this plugin on contentReplaced
event:
window.gtag("config", "GA_MEASUREMENT_ID", {
page_title: pageTitle,
page_path: pageUrl
})
This plugin can be installed with npm
npm install swup-gtag-plugin
and included with import
import SwupGtagPlugin from 'swup-gtag-plugin';
or included from the dist folder
<script src="./dist/SwupGtagPlugin.js"></script>
To run this plugin, include an instance in the swup options.
const swup = new Swup({
plugins: [new SwupGtagPlugin()]
});
gaMeasurementId
defines your GA_MEASUREMENT_ID and is required.
new SwupGtagPlugin({
gaMeasurementId: "GA_MEASUREMENT_ID"
});
FAQs
Swup Google Analytics plugin. Updated for Global Site Tag (gtag.js).
The npm package swup-gtag-plugin receives a total of 130 weekly downloads. As such, swup-gtag-plugin popularity was classified as not popular.
We found that swup-gtag-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.