Ibùdó ìmọ̀

Connect your website to Zinn® Campaigns: Node.js, Next.js and Moodle

Send every sign-up from your own site into Zinn® Campaigns with our npm package or our Moodle plugin. Each lead arrives labelled with the platform and the form, with its consent.

Zinn®, viking wa, n ka akojọ ayẹwo rẹ lẹgbẹẹ atọka ti awọn nkan pẹlu ọkan ti o ṣi silẹ.

Zinn® Campaigns can take sign-ups straight from your own website, wherever it is hosted. You create a site key, add one of our connectors, and every form sign-up arrives in Zinn® Campaigns as a contact. Public page: https://zinndigital.com/campaigns/integrations

1. Create a site key

In your dashboard open Campaigns → Connect a website and create a key for the site. The key starts with zcs_. Keep it on your server: it never goes into a page a visitor loads. Store it as an environment variable, for example ZINN_CAMPAIGNS_SITE_KEY.

2. Add a connector

Next.js

Install the package with npm install @zinn-digital/campaigns and add a route handler:

// app/api/newsletter/route.ts
import { createLeadRoute } from "@zinn-digital/campaigns/next";

export const { POST } = createLeadRoute({
  siteKey: process.env.ZINN_CAMPAIGNS_SITE_KEY!,
  form: "Newsletter",
});

A server action is available too (createLeadAction()). The labels are set on the server, so a visitor cannot change them.

Node.js, Express and Fastify

import express from "express";
import { zinnLeadsExpress } from "@zinn-digital/campaigns/node";

const app = express();
app.post(
  "/newsletter",
  express.urlencoded({ extended: false }),
  zinnLeadsExpress({ siteKey: process.env.ZINN_CAMPAIGNS_SITE_KEY!, form: "Newsletter" }),
);

Fastify uses zinnLeadsFastify() with the same options. Any other framework can call createLeadHandler() with the posted form fields.

React form

@zinn-digital/campaigns/react has a ready sign-up form with English and Arabic text, right-to-left ready. It posts to your own route, and your route adds the key.

Moodle

Install the Zinn® Campaigns for Moodle plugin (local_zinncampaigns) from your dashboard, under Plugins and modules. Go to Site administration → Plugins → Local plugins → Zinn® Campaigns, paste the site key and choose what to send: new sign-ups, course enrolments or both. Leads are sent in the background by Moodle's task runner, so a slow network never slows a sign-up. Each enrolment is labelled with the course name.

Any other site

Post the lead to https://api.zinndigital.com/v1/public/email-marketing/connect/leads with Authorization: Bearer <site key> and a JSON body with at least email. Send an Idempotency-Key header so a retry never makes a duplicate.

3. Labels, source and consent

Every lead is labelled with the platform and the form, such as Next.js: Newsletter or Moodle: Introduction to Biology. The platforms are:

  • Node
  • Next.js
  • Moodle

You can add your own labels as well (up to 20), so you always know which site and form a contact came from.

Send the consent box and the exact text the visitor agreed to. Both are stored with the contact. An address that unsubscribed or bounced is never added back.

What the API answers

  • 201 — the lead was accepted (a new contact, a contact who joined a list, or an address that is suppressed and was left alone).
  • 200 with duplicate — the same idempotency key was already used; nothing changed.
  • 401 — the site key is wrong or was removed. Create a new one.
  • 403 — the site is not connected yet, or the connection was turned off.
  • 429 — too many leads at once. Wait for the number of seconds in Retry-After.

The npm package and the Moodle plugin handle each of these for you.

A kò tíì túmọ̀ àpilẹ̀kọ yìí sí èdè rẹ, nítorí náà ẹ̀dà èdè Gẹ̀ẹ́sì ni o ń kà.

Tuntun lati inu bulọọgi

Ohun ti a ti kọ nipa igbalejo, SEO ati ṣiṣe awọn aaye lori iwọn nla.

SEO ati Ìkọ́lé Ìsopọ̀ láti Ìpele Ìgbàlejò: Ojú-ìwòye Olùṣiṣẹ́ ti Ọdún 2026

Bí iṣẹ́ ìgbàlejò ojú-òpó wẹ́ẹ̀bù ṣe ń ṣe àmúlò ìtọ́ka (indexing) àti ìwọ̀n ìní ìsopọ̀ (link equity) ní ọdún 2026: pípa àwọn ojú-ìwé mọ́ sínú ìtọ́ka, yíyẹ àwọn orúkọ àkọsílẹ̀ àtijọ́ wò kí ẹ tó kọ́lé lé wọn lórí, kíkọ́ àwọn ìsopọ̀ láìsí àpá títẹ̀lẹ̀ (footprint), àti òtítọ́ inú lórí ohun tí ètò amáyédẹrùn lè ṣe àti ohun tí kò lè ṣe fún SEO.

Ka àkọsílẹ̀ náà →

Ṣiṣe WordPress ni Yara ati Ailewu: Atokọ Ayẹwo Iṣẹ ati Awoṣe Afikun

Àtòjọ àyẹ̀wò tó wúlò fún WordPress tó yára tí ó sì ní ààbò: fífi nǹkan pamọ́ sí ipele olupin (server-level caching), àkójọ nǹkan pamọ́ fún ojúlé kọ̀ọ̀kan (object cache), àwọn àfikún díẹ̀ tí ó tọ́ láti lò, mímú àkójọ iṣẹ́ ẹ̀rọ wà ní ìgbàlódé, àti àwọn ojú-ìwé WooCommerce tí ẹ kò gbọ́dọ̀ fi pamọ́ rárá.

Ka àkọsílẹ̀ náà →

Bii o ṣe le Yan Alejo Ayelujara ti a Ṣakoso ni 2026: Itọsọna Olura

Kini ohun tí ó ya àgbàlejò tí a ṣàkóso dáradára sọ́tọ̀ ní tòótọ́ kúrò lára àpótí olówó pọ́kú pẹ̀lú pánẹ́ẹ̀lì ìdarí — àwọn ìṣíwájú, àwọn ẹ̀dà àpamọ́, ìyasọ́tọ̀, ìkójọpọ̀ kátì tòótọ́ àti ìfẹ̀bòwò tí ó jẹ́ tòótọ́ — àti bí a ṣe le ṣe ìdájọ́ rẹ̀ kí ẹ tó ṣe ìpinnu.

Ka àkọsílẹ̀ náà →

Ka bulọọgu náà →

Ṣe o ṣi ni idiwọ?

Atilẹyin wà lori gbogbo eto, ile-iṣẹ wa wa ni ṣiṣi fun iwọn wákàtí 24 lojoojumọ, o si le kọwe si wa ni eyikeyi ninu awọn ede wa ti o jẹ 58 — a o sọ fun ọ ni ede rẹ.

Kan si atilẹyin Gbogbo àwọn àkọsílẹ̀