![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@swup/ga-plugin
Advanced tools
A swup plugin for integrating Google Analytics.
Simplified code run by this plugin on the page:view
hook:
// On sites using gtag.js
window.gtag('config', GA_MEASUREMENT_ID, {
page_title: title,
page_path: url
});
// On sites using analytics.js
window.ga('set', 'title', document.title);
window.ga('set', 'page', window.location.pathname + window.location.search);
window.ga('send', 'pageview');
Install the plugin from npm and import it into your bundle.
npm install @swup/ga-plugin
import SwupGaPlugin from '@swup/ga-plugin';
Or include the minified production file from a CDN:
<script src="https://unpkg.com/@swup/ga-plugin@2"></script>
To run this plugin, include an instance in the swup options.
const swup = new Swup({
plugins: [new SwupGaPlugin()]
});
This option is only required on sites using gtag.js, usually loaded like this:
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID"></script>
The window.gtag
function the measurement ID to trigger page views.
const swup = new Swup({
plugins: [
new SwupGaPlugin({ gaMeasurementId: GA_MEASUREMENT_ID })
]
});
[2.0.0] - 2023-07-26
FAQs
A swup plugin for integrating Google Analytics
The npm package @swup/ga-plugin receives a total of 682 weekly downloads. As such, @swup/ga-plugin popularity was classified as not popular.
We found that @swup/ga-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.