---
updatedAt: 2026-09-04T07:08:33.000Z
agentTools:
  projectIndex: https://documentation.indigitall.com/llms.txt
---

# Custom Events

If you want a customer journey to be executed after an action on your website, you can use the following method:

```javascript
IndigitallFlutterPlugin.sendCustomerCustomEvent(
  "eventCode": "field1_value",
  "eventId: "eventId_optional",
  "eventAt: "eventAt_optional",
  "customData": {
		  "dataKey": "dataValue"
	}, (response) => {  
  		console.log("Event success response: "+response);  
  }, (error) => {  
      console.log("Event error: "+ JSON.stringify(error));  
  })
```

Inside the JSON, in the second parameter, you must send the necessary variables that the journey needs to send the campaigns.

For example:

```javascript
IndigitallFlutterPlugin.sendCustomerCustomEvent(
  "eventCode": "my_event",
  "eventId: "eventId_optional",
  "eventAt: "eventAt_optional",
  "customData": {"name": "John","value": "123"}
, (response) => {
  	console.log("Event success response: "+response);
}, (error) => {
    console.log("Event error: "+ JSON.stringify(error));
})
```