---
title: アカウントコントローラー
slug: wcaw_I3_3cIqupowBW0ia
createdAt: 2025-07-30T21:22:24.108Z
---

# アカウントコントローラーの統合

Forterカートリッジコントローラーは、カートリッジがチェックアウトイベントに至るまでのさまざまな顧客イベントやアクションを追跡できるようにします。コントローラーに基づいてカートリッジをSite Genesisと統合するためには、`pipelets/forter/ForterCallCustomerUpdate.js`を以下のコントローラーに追加する必要があります:

1. **Account.js**（`editForm()`関数内）
2. **Account.js**（`registrationForm()`関数内）:
3. **Address.js**（`list()`関数内）:
4. **Login.js**（`handleLoginForm()`関数内）:
5. **Login.js**（`Logout()`関数内）:
6. **Paymentinstruments.js**（`list()`関数内）:
7. **Wishlist.js**（`add()`関数内）:
8. **Wishlist.js**（`wishListForm()`関数内）:

## 1. Account.js（editForm()関数内）:

```javascript
var argCustomerUpdate = {
EventType: require('int_forter/cartridge/scripts/lib/forter/ForterConfig.ds').ForterConfig.CUSTOMER_CREATE};

var forterCall = require('int_forter/cartridge/scripts/pipelets/forter/ForterCustomerUpdate');
forterCall.execute(argCustomerUpdate);
```

![](https://api.archbee.com/api/optimize/dYhsqkppjaUNAqFmds_Ny-lsCiNEy7lglCS-Ynjt_ym-20250724-184328.png)

## 3. Address.js (in the list() function):

```javascript
var argCustomerUpdate = {
EventType: require('int_forter/cartridge/scripts/lib/forter/ForterConfig.ds').ForterConfig.CUSTOMER_ADDRESS_UPDATE};
var forterCall = require('int_forter/cartridge/scripts/pipelets/forter/ForterCustomerUpdate');
forterCall.execute(argCustomerUpdate);
```

![](https://api.archbee.com/api/optimize/dYhsqkppjaUNAqFmds_Ny-qaXp_R03JM2Bj6E7HJjVL-20250724-184328.png)

## 4. Login.js (in the handleLoginForm() function):

```javascript
var argCustomerUpdate = {
EventType: require('int_forter/cartridge/scripts/lib/forter/ForterConfig.ds').ForterConfig.CUSTOMER_LOGIN;
var forterCall = require('int_forter/cartridge/scripts/pipelets/forter/ForterCustomerUpdate');
forterCall.execute(argCustomerUpdate);
```

![](https://api.archbee.com/api/optimize/dYhsqkppjaUNAqFmds_Ny-_OEmJpfq7GVgxMJMuS_xo-20250724-184328.png)

## 5. Login.js (Logout()関数内):

```javascript
var argCustomerUpdate = {
EventType: require('int_forter/cartridge/scripts/lib/forter/ForterConfig.ds').ForterConfig.CUSTOMER_LOGOUT;
var forterCall = require('int_forter/cartridge/scripts/pipelets/forter/ForterCustomerUpdate');
forterCall.execute(argCustomerUpdate);
```

![](https://api.archbee.com/api/optimize/dYhsqkppjaUNAqFmds_Ny-1r9O3pMringT7AjlzeB8e-20250724-184328.png)

## 6. Paymentinstruments.js (list()関数内):

```javascript
var argCustomerUpdate = {
EventType: require('int_forter/cartridge/scripts/lib/forter/ForterConfig.ds').ForterConfig.CUSTOMER_PAYMENT_UPDATE;
var forterCall = require('int_forter/cartridge/scripts/pipelets/forter/ForterCustomerUpdate');
forterCall.execute(argCustomerUpdate);
```

![](https://api.archbee.com/api/optimize/dYhsqkppjaUNAqFmds_Ny-l1fQZZIpBFm9JDO8LPxyP-20250724-184329.png)

## 7. Wishlist.js ( add() 関数内):

```javascript
var argCustomerUpdate = {
EventType: require('int_forter/cartridge/scripts/lib/forter/ForterConfig.ds').ForterConfig.CUSTOMER_PROFILE_UPDATE;
var forterCall = require('int_forter/cartridge/scripts/pipelets/forter/ForterCustomerUpdate');
forterCall.execute(argCustomerUpdate);
```

![](https://api.archbee.com/api/optimize/dYhsqkppjaUNAqFmds_Ny-G1OBDrgjycuXhmap3TOyS-20250724-184329.png)

## 8. Wishlist.js ( wishListForm() 関数内):

```javascript
var argCustomerUpdate = {
EventType: require('int_forter/cartridge/scripts/lib/forter/ForterConfig.ds').ForterConfig.CUSTOMER_PROFILE_UPDATE;
var forterCall = require('int_forter/cartridge/scripts/pipelets/forter/ForterCustomerUpdate');
forterCall.execute(argCustomerUpdate);
```

![](https://api.archbee.com/api/optimize/dYhsqkppjaUNAqFmds_Ny-4xNX1IkE7FBYT2a-qVbsy-20250724-184329.png)
