Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@piwikpro/vue-piwik-pro
Advanced tools
Dedicated Piwik PRO library that helps with implementing Piwik PRO Tag Manager and the Piwik PRO tracking client in VUE applications.
To use this package in your project, run the following command.
npm install @piwikpro/vue-piwik-pro
In your Vue Project, include the default PiwikPro
in the highest level application module. ie main
. To set up the Piwik PRO Tag Manager container in the app, the easiest way is to call the PiwikPro.initialize()
method. PiwikPro.initialize()
must be initialized using this function before any of the other tracking functions will record any data.
In the arguments, pass your app ID and your account URL as parameters (marked 'container-id' and 'container-url' in the example below).
// main.ts
import VuePiwikPro from '@piwikpro/vue-piwik-pro'
VuePiwikPro.initialize(
import.meta.env.VITE_PIWIK_PRO_CONTAINER_ID as string,
import.meta.env.VITE_PIWIK_PRO_CONTAINER_URL as string
)
The nonce attribute is useful to allow-list specific elements, such as a particular inline script or style elements. It can help you to avoid using the CSP unsafe-inline directive, which would allow-list all inline scripts or styles.
If you want your nonce to be passed to the script, pass it as the third argument when calling the script initialization method.
// main.ts
import VuePiwikPro from '@piwikpro/vue-piwik-pro'
VuePiwikPro.initialize(
import.meta.env.VITE_PIWIK_PRO_CONTAINER_ID as string,
import.meta.env.VITE_PIWIK_PRO_CONTAINER_URL as string,
'nonce-string'
)
Please explore the ./vue-piwik-pro-example
directory to get to know how to use this package with a specyfic examples and it's various methods.
FAQs
Piwik PRO tracking library for VueJS
The npm package @piwikpro/vue-piwik-pro receives a total of 111 weekly downloads. As such, @piwikpro/vue-piwik-pro popularity was classified as not popular.
We found that @piwikpro/vue-piwik-pro demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.