https://github.com/managed-components/pinterest
https://github.com/managed-components/pinterest
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/managed-components/pinterest
- Owner: managed-components
- License: other
- Created: 2023-02-16T10:41:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-31T11:29:37.000Z (over 1 year ago)
- Last Synced: 2025-03-03T18:46:35.298Z (3 months ago)
- Language: TypeScript
- Size: 411 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zaraz - Pinterest
- awesome-zaraz - Pinterest
README
# Pinterest Managed Component
Find out more about Managed Components [here](https://blog.cloudflare.com/zaraz-open-source-managed-components-and-webcm/) for inspiration and motivation details.
[](./LICENSE)
[](./CONTRIBUTING.md)
[](https://github.com/prettier/prettier)
[](#contributors)## 🚀 Quickstart local dev environment
1. Make sure you're running node version >=17.
2. Install dependencies with `npm i`
3. Run unit test watcher with `npm run test:dev`## ⚙️ Tool Settings
> Settings are used to configure the tool in a Component Manager config file
### TID `string` _required_
`tid` Pixel Tag ID - The Pinterest Tag ID is the unique identifier of your Pinterest tag. [Learn more](https://help.pinterest.com/en/business/article/track-conversions-with-pinterest-tag).
---
## Fields Description
Fields are properties that can/must be sent with certain events.
### Required Fields
#### Event Name `string` _required_
`event` - The name of the tracking event to be sent to Pinterest.
### Optional Fields
#### User Defined Event `string` _optional_
`ude` - Specify a custom event name for audience targeting purposes. Spaces in the event name will be removed. [Learn more](https://help.pinterest.com/en/business/article/add-event-codes).
#### Partner Data Email `string` _optional_
`pdem` - Specifies the email address associated with the partner data, if applicable.
#### Tag Manager `string` _optional_
`tm` - Indicates the Tag Manager used, defaults to 'pinterest-mc' if not specified.
#### Lead Type `string` _optional_
`lead_type` - Describes the type of lead being tracked, such as 'Newsletter', 'Signup', etc.
#### Video Title `string` _optional_
`video_title` - The title of the video for tracking specific video events.
#### E-commerce Tracking `boolean` _optional_
`ecommerce` - Enables or disables the forwarding of Zaraz E-commerce API events to Pinterest. This includes events like Search, AddToCart, and Checkout. [Learn more](https://help.pinterest.com/en-gb/business/article/add-event-codes).
---
## 📝 License
Licensed under the [Apache License](./LICENSE).
## 💜 Thanks
Thanks to everyone contributing in any manner for this repo and to everyone working on Open Source in general.
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!