countly-sdk-web
Advanced tools
Comparing version 22.6.2 to 22.6.3
@@ -51,3 +51,3 @@ { | ||
"MD053": true | ||
} | ||
} | ||
@@ -0,1 +1,4 @@ | ||
## 22.06.3 | ||
- Fixed an issue that arose when sending crashes through a gateway. User agent information is now sent as part of the request. | ||
## 22.06.2 | ||
@@ -2,0 +5,0 @@ - ! Minor breaking change ! If no domain whitelist is provided for the heatmaps the SDK will fallback to your server url |
@@ -37,2 +37,28 @@ import "./index"; | ||
/** | ||
* Checks a crash request for valid/correct formation | ||
* @param {Object} testObject - crash object to be checked | ||
*/ | ||
Cypress.Commands.add("check_crash", (testObject, appKey) => { | ||
appKey = appKey || hp.appKey; | ||
const metrics = JSON.parse(testObject.metrics); | ||
const crash = JSON.parse(testObject.crash); | ||
const metricKeys = Object.keys(metrics); | ||
cy.check_request_commons(testObject, appKey); | ||
cy.check_commons(testObject); | ||
expect(metrics._ua).to.be.exist; | ||
expect(metricKeys.length).to.equal(1); | ||
expect(crash._app_version).to.be.exist; | ||
expect(crash._background).to.be.exist; | ||
expect(crash._error).to.be.exist; | ||
expect(crash._javascript).to.be.exist; | ||
expect(crash._nonfatal).to.be.exist; | ||
expect(crash._not_os_specific).to.be.exist; | ||
expect(crash._online).to.be.exist; | ||
expect(crash._opengl).to.be.exist; | ||
expect(crash._resolution).to.be.exist; | ||
expect(crash._run).to.be.exist; | ||
expect(crash._view).to.be.exist; | ||
}); | ||
/** | ||
* Checks a queue object for valid/correct begin session, end session and session extension values | ||
@@ -39,0 +65,0 @@ * @param {Object} queue - queue object to check |
{ | ||
"name": "countly-sdk-web", | ||
"version": "22.06.2", | ||
"version": "22.06.3", | ||
"description": "Countly Web SDK", | ||
@@ -5,0 +5,0 @@ "main": "lib/countly.js", |
@@ -0,72 +1,61 @@ | ||
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/79582b7ee7ca4021a3950376402fac00)](https://www.codacy.com/gh/Countly/countly-sdk-web/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Countly/countly-sdk-web&utm_campaign=Badge_Grade) | ||
[![npm version](https://badge.fury.io/js/countly-sdk-web.svg)](https://badge.fury.io/js/countly-sdk-web) | ||
[![js delivr](https://data.jsdelivr.com/v1/package/npm/countly-sdk-web/badge)](https://www.jsdelivr.com/package/npm/countly-sdk-web) | ||
# Countly Web SDK | ||
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/79582b7ee7ca4021a3950376402fac00)](https://www.codacy.com/gh/Countly/countly-sdk-web/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Countly/countly-sdk-web&utm_campaign=Badge_Grade) [![npm version](https://badge.fury.io/js/countly-sdk-web.svg)](https://badge.fury.io/js/countly-sdk-web) [![](https://data.jsdelivr.com/v1/package/npm/countly-sdk-web/badge)](https://www.jsdelivr.com/package/npm/countly-sdk-web) | ||
This repository contains the Countly Web SDK, which can be integrated into websites and web applications. The Countly Web SDK is intended to be used with [Countly Community Edition](https://github.com/Countly/countly-server) or [Countly Enterprise Edition](https://count.ly/product). | ||
## What is Countly? | ||
[Countly](http://count.ly) is a product analytics solution and innovation enabler that helps teams track product performance and customer journey and behavior across [mobile](https://count.ly/mobile-analytics), [web](http://count.ly/web-analytics), and [desktop](https://count.ly/desktop-analytics) applications. [Ensuring privacy by design](https://count.ly/your-data-your-rules), Countly allows you to innovate and enhance your products to provide personalized and customized customer experiences, and meet key business and revenue goals. | ||
[Countly](https://count.ly) is a product analytics solution and innovation enabler that helps teams track product performance and customer journey and behavior across [mobile](https://count.ly/mobile-analytics), [web](http://count.ly/web-analytics), | ||
and [desktop](https://count.ly/desktop-analytics) applications. [Ensuring privacy by design](https://count.ly/privacy-by-design), Countly allows you to innovate and enhance your products to provide personalized and customized customer experiences, and meet key business and revenue goals. | ||
Track, measure, and take action - all without leaving Countly. | ||
* **Slack user?** [Join our community](https://slack.count.ly) to ask questions and get answers! | ||
* **Questions?** [Ask in our Community forum](https://support.count.ly/hc/en-us/community/topics) | ||
* **Slack user?** [Join our Slack Community](https://slack.count.ly) | ||
* **Questions or feature requests?** [Post in our Community Forum](https://support.count.ly/hc/en-us/community/topics) | ||
* **Looking for the Countly Server?** [Countly Community Edition repository](https://github.com/Countly/countly-server) | ||
* **Looking for other Countly SDKs?** [An overview of all Countly SDKs for mobile, web and desktop](https://support.count.ly/hc/en-us/articles/360037236571-Downloading-and-Installing-SDKs#officially-supported-sdks) | ||
## Implementing Countly SDK in your web pages | ||
There are 3 ways to get Countly SDK. | ||
## Integrating Countly SDK in your projects | ||
### 1. Available with Countly server | ||
Since Countly server 16.02, Countly Web SDK is available in your Countly server installation in `countly/frontend/express/public/sdk/web/countly.min.js` which should be available through URL as `https://yourserver.com/sdk/web/countly.min.js` | ||
For a detailed description on how to use this SDK [check out our documentation](https://support.count.ly/hc/en-us/articles/360037441932-Web-analytics-JavaScript-). | ||
### 2. Installation using package managers | ||
bower install countly-sdk-web | ||
or | ||
For information about how to add the SDK to your project, please check [this section of the documentation](https://support.count.ly/hc/en-us/articles/360037441932-Web-analytics-JavaScript-#adding-the-sdk-to-the-project). | ||
npm install countly-sdk-web | ||
or | ||
You can reach minimal integration info for your website from [this section of the documentation](https://support.count.ly/hc/en-us/articles/360037441932-Web-analytics-JavaScript-#minimal-setup). | ||
yarn add countly-sdk-web | ||
Countly Web SDK has JSDoc3 compatible comments, and you can generate documentation by running `npm run-script docs` or you can use [the online version](https://countly.github.io/countly-sdk-web/). | ||
### 3. Use a CDN (content delivery network) | ||
Countly web SDK is available on CDNJS: | ||
For an example integration of this SDK, you can have a look [here](https://github.com/Countly/countly-sdk-web/tree/master/examples). | ||
[https://cdn.jsdelivr.net/npm/countly-sdk-web@latest/lib/countly.min.js](https://cdn.jsdelivr.net/npm/countly-sdk-web@latest/lib/countly.min.js) | ||
This SDK supports the following features: | ||
* [Analytics](https://support.count.ly/hc/en-us/articles/4431589003545-Analytics) | ||
* [User Profiles](https://support.count.ly/hc/en-us/articles/4403281285913-User-Profiles) | ||
* [Crash Reports](https://support.count.ly/hc/en-us/articles/4404213566105-Crashes-Errors) | ||
* [A/B Testing](https://support.count.ly/hc/en-us/articles/4416496362393-A-B-Testing-) | ||
* [Performance Monitoring](https://support.count.ly/hc/en-us/articles/4734457847705-Performance) | ||
* [Feedback Widgets](https://support.count.ly/hc/en-us/articles/4652903481753-Feedback-Surveys-NPS-and-Ratings-) | ||
## How to use Countly Web SDK? | ||
Link to the script and call helper methods based on what you want to track: sessions, views, clicks, custom events, user data, etc. and for much more information check out our documentation at [https://support.count.ly/hc/en-us/articles/360037441932-Web-analytics-JavaScript-](https://support.count.ly/hc/en-us/articles/360037441932-Web-analytics-JavaScript-) | ||
You can reach minimal integration info for your website from here [https://support.count.ly/hc/en-us/articles/360037441932-Web-analytics-JavaScript-#minimal-setup](https://support.count.ly/hc/en-us/articles/360037441932-Web-analytics-JavaScript-#minimal-setup) | ||
Countly Web SDK has JSDoc3 compatible comments and you can generate documentation by running `npm run-script docs` or access online version at [https://countly.github.io/countly-sdk-web/](https://countly.github.io/countly-sdk-web/) | ||
## Security | ||
Security is very important to us. If you discover any issue regarding security, please disclose the information responsibly by sending an email to security@count.ly and **not by creating a GitHub issue**. | ||
## Other Github resources | ||
Check Countly Community Edition source code here: | ||
* [Countly Server](https://github.com/Countly/countly-server) | ||
There are also other Countly SDK repositories below: | ||
* [Countly iOS SDK](https://github.com/Countly/countly-sdk-ios) | ||
* [Countly Android SDK](https://github.com/Countly/countly-sdk-android) | ||
* [Countly Windows Phone SDK](https://github.com/Countly/countly-sdk-windows-phone) | ||
* [Countly Appcelerator Titanium SDK](https://github.com/euforic/Titanium-Count.ly) (Community supported) | ||
* [Countly Unity3D SDK](https://github.com/Countly/countly-sdk-unity) (Community supported) | ||
## How can I help you with your efforts? | ||
Glad you asked. We need ideas, feedbacks and constructive comments. All your suggestions will be taken care with upmost importance. We are on [Twitter](http://twitter.com/gocountly) and [Facebook](https://www.facebook.com/Countly) if you would like to keep up with our fast progress! | ||
## Badges | ||
If you like Countly, [why not use one of our badges](https://count.ly/brand-assets) and give a link back to us, so others know about this wonderful platform? | ||
If you like Countly, [why not use one of our badges](https://count.ly/brand-assets) and give a link back to us so others know about this wonderful platform? | ||
<a href="https://count.ly/f/badge" rel="nofollow"><img style="width:145px;height:60px" src="https://count.ly/badges/dark.svg?v2" alt="Countly - Product Analytics" /></a> | ||
<a href="https://count.ly/f/badge" rel="nofollow"><img style="width:145px;height:60px" src="https://count.ly/badges/dark.svg" alt="Countly - Product Analytics" /></a> | ||
```JS | ||
<a href="https://count.ly/f/badge" rel="nofollow"><img style="width:145px;height:60px" src="https://count.ly/badges/dark.svg" alt="Countly - Product Analytics" /></a> | ||
``` | ||
<a href="https://count.ly/f/badge" rel="nofollow"><img style="width:145px;height:60px" src="https://count.ly/badges/light.svg?v2" alt="Countly - Product Analytics" /></a> | ||
<a href="https://count.ly/f/badge" rel="nofollow"><img style="width:145px;height:60px" src="https://count.ly/badges/light.svg" alt="Countly - Product Analytics" /></a> | ||
```JS | ||
<a href="https://count.ly/f/badge" rel="nofollow"><img style="width:145px;height:60px" src="https://count.ly/badges/light.svg" alt="Countly - Product Analytics" /></a> | ||
``` | ||
## Support | ||
For a public community support page, visit [https://support.count.ly/hc/en-us/community/topics](https://support.count.ly/hc/en-us/community/topics "Countly Community Forum"). | ||
## How can I help you with your efforts? | ||
Glad you asked! We need ideas, feedback and constructive comments. All your suggestions will be taken care of with utmost importance. For feature requests and engaging with the community, join [our Slack Community](https://slack.count.ly) or [Community Forum](https://support.count.ly/hc/en-us/community/topics). | ||
[![NPM](https://nodei.co/npm/countly-sdk-web.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/countly-sdk-web/) | ||
We are on [Twitter](http://twitter.com/gocountly), [Facebook](https://www.facebook.com/Countly) and [LinkedIn](https://www.linkedin.com/company/countly) if you would like to keep up with Countly related updates. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1866457
132
10761
62