Melakukan onboarding Meta Pixel baru ke Conversions API Gateway.
POST https://{capig_domain}/capig/graphql/ _________________________________________________________________________________________________________________ mutation AddNewPixelModalMutation( $tenantId: ID! $input: PixelConnectionCreationInput! ) { tenantMutations(tenantId: $tenantId) { signalMutations { setupPixelSignalConfig(input: $input) { id domains connectionId connectionStatus { id accessTokenAvailable active connected accessKey eventBridgeActive publishingEnabled apiErrorCode pixelID pixelName lastPublished totalEventsPublished lastReceived totalEventsReceived } } } } } _________________________________________________________________________________________________________ tenantId: ID! _________________________________________________________________________________________________________ input PixelConnectionCreationInput { businessId: String! pixelId: String! accessToken: String! apiVersion: String externalId: String! name: String }
Kolom | Deskripsi |
---|---|
| Wajib Pengidentifikasi unik akun |
PixelConnectionCreationInput
Kolom | Deskripsi |
---|---|
| Wajib ID bisnis akun |
| Wajib ID Pixel yang perlu diintegrasikan |
| Wajib Token akses dari pengaturan MBE atau dibuat secara manual dari Pengelola Peristiwa |
| Opsional Versi API terbaru untuk Graph API |
| Wajib Ini harus sama dengan |
| Opsional Nama Pixel |
Kolom | Deskripsi |
---|---|
| Konfigurasi Pixel |
Kode | Deskripsi |
---|---|
400 | Input yang dimasukkan tidak valid |
401 | Pengguna tidak berwenang untuk menyiapkan konfigurasi Pixel |
500 | Kesalahan server internal |
Mutasi
mutation AddNewPixelModalMutation( $tenantId: ID! $input: PixelConnectionCreationInput! ) { tenantMutations(tenantId: $tenantId) { signalMutations { setupPixelSignalConfig(input: $input) { id domains connectionId connectionStatus { id accessTokenAvailable active eventBridgeActive publishingEnabled apiErrorCode pixelID pixelName lastPublished totalEventsPublished lastReceived totalEventsReceived } } } } }
Variabel
{ "tenantId": "IaoreXfj", "input": { "pixelId": "18904456377094531", "businessId": "2840127409433732", "accessToken": "<accessToken>", "apiVersion": "v14.0", "externalId": "633612748410ba6e902" } }
{ "data": { "tenantMutations": { "signalMutations": { "setupPixelSignalConfig": { "id": "SignalConfig:18904456377094531", "domains": [], "connectionId": "18904456377094531", "connectionStatus": { "id": "ConnectionStatus:18904456377094531", "accessTokenAvailable": true, "active": true, "eventBridgeActive": true, "publishingEnabled": true, "apiErrorCode": null, "pixelID": "18904456377094531", "pixelName": null, "lastPublished": 0.0, "totalEventsPublished": 0.0, "lastReceived": 0.0, "totalEventsReceived": 0.0 } } } } } }
Menghapus Pixel yang ada dari Gateway.
POST https://{capig_domain}/capig/graphql/ _________________________________________________________________________________________________________________ mutation DeleteDataSourceModalMutation( $id: ID! $tenantId: ID! ) { tenantMutations(tenantId: $tenantId) { signalMutations { deleteDataSource(id: $id) } } } _________________________________________________________________________________________________________ id: ID! _____________________________________________________________________________________________________________ tenantId: ID!
Kolom | Deskripsi |
---|---|
| Wajib ID Pixel |
| Wajib |
Kolom | Deskripsi |
---|---|
Boolean | Menunjukkan apakah Pixel berhasil dihapus |
Kode | Deskripsi |
---|---|
401 | Pengguna tidak berwenang menghapus konfigurasi Pixel. |
404 | Pixel tidak ditemukan. |
500 | Kesalahan server internal |
Mutasi
mutation DeleteDataSourceModalMutation( $id: ID! $tenantId: ID! ) { tenantMutations(tenantId: $tenantId) { signalMutations { deleteDataSource(id: $id) } } }
Variabel
{ "id":"18904456377094531", "tenantId":"IaoreXfj" }
{ "data": { "tenantMutations": { "signalMutations": { "deleteDataSource": true } } } }
Mengubah status penerimaan peristiwa Pixel Gateway.
POST https://{capig_domain}/capig/graphql/ _________________________________________________________________________________________________________________ mutation updateSignalConfigStatusMutation( $id: ID!, $tenantId: ID!, $input: SignalConfigStatusInput!) { tenantMutations(tenantId: $tenantId) { signalMutations { updateSignalConfigEventsStatus(id: $id, input: $input) { success connectionStatus { id accessTokenAvailable active connected accessKey eventBridgeActive publishingEnabled apiErrorCode pixelID pixelName lastPublished totalEventsPublished lastReceived totalEventsReceived } } } } } _________________________________________________________________________________________________________ id: ID! _____________________________________________________________________________________________________________ tenantId: ID! ________________________________________________________________________________________________________ input SignalConfigStatusInput { status: Int! }
Kolom | Deskripsi |
---|---|
| Wajib ID Pixel yang perlu dikonfigurasi |
| Wajib |
Kolom | Deskripsi | ||||||
---|---|---|---|---|---|---|---|
| Wajib
|
UpdateSignalConfigStatusPayload
Kolom | Deskripsi |
---|---|
| Menunjukkan apakah operasi pada Pixel berhasil |
| Konfigurasi koneksi Pixel |
Kode | Deskripsi |
---|---|
401 | Tidak berwenang melakukan tindakan pada Pixel |
500 | Kesalahan server internal |
Mutasi
mutation updateSignalConfigStatusMutation( $id: ID!, $tenantId: ID!, $input: SignalConfigStatusInput!) { tenantMutations(tenantId: $tenantId) { signalMutations { updateSignalConfigEventsStatus(id: $id, input: $input) { success connectionStatus { id connected active eventBridgeActive publishingEnabled } } } } }
Variabel
{ "id": "18904456377094531", "tenantId": "IaoreXfj", "input": { "status": 1 } }
{ "data": { "tenantMutations": { "signalMutations": { "updateSignalConfigEventsStatus": { "success": true, "connectionStatus": { "id": "ConnectionStatus:18904456377094531", "connected": true, "active": true, "eventBridgeActive": true, "publishingEnabled": true } } } } } }
Mengubah status penerbitan peristiwa Pixel. Jika dinonaktifkan, Gateway akan menghapus peristiwa yang diterima dan tidak menerbitkannya ke Meta.
POST https://{capig_domain}/capig/graphql/ _________________________________________________________________________________________________________________ mutation updateSignalConfigCapiPublishMutation( $id: ID!, $tenantId: ID!, $input: SignalConfigStatusInput!) { tenantMutations(tenantId: $tenantId) { signalMutations { updateSignalConfigCapiPublish(id: $id, input: $input) { success connectionStatus { id accessTokenAvailable active connected accessKey eventBridgeActive publishingEnabled apiErrorCode pixelID pixelName lastPublished totalEventsPublished lastReceived totalEventsReceived } } } } } _________________________________________________________________________________________________________ id: ID! _____________________________________________________________________________________________________________ tenantId: ID! ________________________________________________________________________________________________________ input SignalConfigStatusInput { status: Int! }
Kolom | Deskripsi |
---|---|
| Wajib ID Pixel yang perlu dikonfigurasi |
| Wajib |
Kolom | Deskripsi | ||||||
---|---|---|---|---|---|---|---|
| Wajib
|
UpdateSignalConfigStatusPayload
Kolom | Deskripsi |
---|---|
| Menunjukkan apakah operasi pada Pixel berhasil |
| Konfigurasi koneksi Pixel |
Kode | Deskripsi |
---|---|
401 | Tidak berwenang melakukan tindakan pada Pixel |
500 | Kesalahan server internal |
Mutasi
mutation updateSignalConfigCapiPublishMutation( $id: ID!, $tenantId: ID!, $input: SignalConfigStatusInput!) { tenantMutations(tenantId: $tenantId) { signalMutations { updateSignalConfigCapiPublish(id: $id, input: $input) { success connectionStatus { id active eventBridgeActive publishingEnabled } } } } }
Variabel
{ "id": "18904456377094531", "tenantId": "IaoreXfj", "input": { "status": 0 } }
{ "data": { "tenantMutations": { "signalMutations": { "updateSignalConfigCapiPublish": { "success": true, "connectionStatus": { "id": "ConnectionStatus:18904456377094531", "active": false, "eventBridgeActive": true, "publishingEnabled": false } } } } } }
Mengubah status penerbitan peristiwa Pixel berdasarkan nama peristiwa dan ID Pixel. Jika dinonaktifkan, Gateway akan menghapus peristiwa ini dan tidak menerbitkannya ke Meta.
POST https://{capig_domain}/capig/graphql/ _________________________________________________________________________________________________________________ mutation EventFilterStatusMutation($tenantId: ID!, $input: UpdateEventFilterInput!) { tenantMutations(tenantId: $tenantId) { updateEventFilter(input: $input) { updatedFilter { id eventName pixelId filterState } } } } _________________________________________________________________________________________________________ tenantId: ID! _____________________________________________________________________________________________________________ input UpdateEventFilterInput { eventName: String! pixelIds: [String!] filterState: EventFilterState! }
Kolom | Deskripsi |
---|---|
| Wajib |
Kolom | Deskripsi |
---|---|
| Wajib Nama peristiwa yang akan difilter |
| Opsional Daftar ID Pixel yang perlu difilter. Jika dimasukkan null, semua Pixel untuk akun itu akan diperbarui |
| Wajib Keadaan filter |
UpdateEventFilterResult
Kolom | Deskripsi |
---|---|
| Filter Peristiwa yang Diperbarui |
Kode | Deskripsi |
---|---|
401 | Tidak berwenang memperbarui filter peristiwa |
500 | Kesalahan server internal |
Mutasi
mutation EventFilterStatusMutation($tenantId: ID!, $input: UpdateEventFilterInput!) { tenantMutations(tenantId: $tenantId) { updateEventFilter(input: $input) { updatedFilter { eventName pixelId filterState } } } }
Variabel
{ "tenantId": "IaoreXfj", "input": { "eventName": "AddToCart", "pixelIds": ["18904456377094531"], "filterState": "PUBLISH" } }
{ "data": { "tenantMutations": { "updateEventFilter": { "updatedFilter": { "eventName": "AddToCart", "pixelId": "18904456377094531", "filterState": "PUBLISH" } } } } }
Memblokir penerimaan peristiwa dari situs web tertentu.
POST https://{capig_domain}/capig/graphql/ _________________________________________________________________________________________________________________ mutation useComitDomainFilterChangeMutation($tenantId: ID!, $input: UpdateDomainFilterInput!) { tenantMutations(tenantId: $tenantId) { updateDomainFilter(input: $input) { updatedFilter { id domain pixelId filterState } } } } _________________________________________________________________________________________________________ tenantId: ID! _____________________________________________________________________________________________________________ input UpdateDomainFilterInput { domain: String! pixelIds: [String!] filterState: DomainFilterState! }
Kolom | Deskripsi |
---|---|
| Wajib |
Kolom | Deskripsi |
---|---|
| Wajib Nama domain yang akan difilter Format harus: example.com |
| Opsional Daftar ID Pixel yang perlu difilter |
| Wajib Keadaan filter |
UpdateDomainFilterResult
Kolom | Deskripsi |
---|---|
| Objek filter domain |
Kode | Deskripsi |
---|---|
401 | Tidak berwenang memperbarui filter domain |
500 | Kesalahan server internal |
Mutasi
mutation useComitDomainFilterChangeMutation($tenantId: ID!, $input: UpdateDomainFilterInput!) { tenantMutations(tenantId: $tenantId) { updateDomainFilter(input: $input) { updatedFilter { id domain pixelId filterState } } } }
Variabel
{ "tenantId": "IaoreXfj", "input": { "domain": "example.com", "filterState": "DROP" } }
"data": { "tenantMutations": { "updateDomainFilter": { "updatedFilter": { "id": "DomainFilter:example.com:global", "domain": "example.com", "pixelId": null, "filterState": "DROP" } } } }