
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@daisycon/tracking
Advanced tools
yarn add @daisycon/tracking
npm install @daisycon/tracking
Add the following piece of code to the root of your app so that it loads on every page and stores any received dci.
import {TrackingService} from '@daisycon/tracking';
new TrackingService()
.storeData();
To register a lead or sale, you can use any of the examples below.
import {CurrencyEnum, Part, SuccessInterface, TrackingService, Transaction} from '@daisycon/tracking';
const campaignId: number = 475;
const segment: string = 'lt45.net';
const transaction: Transaction = new Transaction({
campaignId: campaignId,
transactionId: 'AB374782388282',
}).addPart(new Part({
amount: 125,
revenue: 250,
currency: CurrencyEnum.EUR,
externalDescription: 'Transaction for Campaign',
}));
try {
const successResponse: SuccessInterface = await new TrackingService(segment)
.registerTransaction(transaction);
console.log('successResponse', successResponse);
} catch (errorResponse: any) {
console.log('errorResponse', errorResponse);
}
import {CurrencyEnum, Part, SuccessInterface, TrackingService, Transaction} from '@daisycon/tracking';
const campaignId: number = 475;
const segment: string = 'lt45.net';
const transaction: Transaction = new Transaction({
campaignId: campaignId,
transactionId: 'AB374782388282',
}).addPart(new Part({
amount: 125,
revenue: 250,
currency: CurrencyEnum.EUR,
externalDescription: 'Transaction for Campaign',
}));
new TrackingService(segment)
.registerTransaction(transaction)
.then((successResponse: SuccessInterface) => console.log('successResponse', successResponse))
.catch((errorResponse: any) => console.log('errorResponse', errorResponse));
import {CurrencyEnum, Part, SuccessInterface, TrackingService, Transaction} from '@daisycon/tracking';
const campaignId: number = 475;
const segment: string = 'lt45.net';
const myData: any = {
currencyCode: 'EUR',
transactionId: '1234Acef',
products: [
{name: 'test', price: 25.01},
{name: 'test 2', price: 2.95},
]
};
const transaction: Transaction = new Transaction({
campaignId: campaignId,
transactionId: myData.transactionId,
parts: myData.products.map((product: any) => {
return new Part({
amount: product.price,
revenue: product.price,
currency: <CurrencyEnum>myData.currencyCode,
externalDescription: product.name,
});
})
});
new TrackingService(segment)
.registerTransaction(transaction)
.then((successResponse: SuccessInterface) => console.log('successResponse', successResponse))
.catch((errorResponse: any) => console.log('errorResponse', errorResponse));
Add the following piece of code to the root of your app so that it loads on every page and stores any received dci.
const daisycon = require('@daisycon/tracking');
new daisycon.TrackingService()
.storeData();
const daisycon = require('@daisycon/tracking');
const campaignId: number = 475;
const segment: string = 'lt45.net';
const transaction: daisycon.Transaction = new daisycon.Transaction({
campaignId: campaignId,
transactionId: 'AB374782388282',
}).addPart(new daisycon.Part({
amount: 125,
revenue: 250,
currency: daisycon.CurrencyEnum.EUR,
externalDescription: 'Transaction for Campaign',
}));
try {
const successResponse: SuccessInterface = await new daisycon.TrackingService(segment)
.registerTransaction(transaction);
console.log('successResponse', successResponse);
} catch (errorResponse: any) {
console.log('errorResponse', errorResponse);
}
Add the following piece of code to the root of your app so that it loads on every page and stores any received dci.
<script src="/path/to/build/daisycon-bundle.min.js"
new daisycon()
.storeData();
const campaignId: number = 475;
const segment: string = 'lt45.net';
try {
const successResponse = await new daisycon(segment)
.registerTransaction({
campaignId: campaignId,
transactionId: 'AB374782388282',
parts: [{
amount: 125,
revenue: 250,
currency: daisycon.CurrencyEnum.EUR,
externalDescription: 'Transaction for Campaign',
}]
});
console.log('successResponse', successResponse);
} catch (errorResponse) {
console.log('errorResponse', errorResponse);
}
FAQs
Daisycon JS tracking
We found that @daisycon/tracking demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.