Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

_CreateOrUpdate.cshtml

@model FacebookPixelModel

To configure the Facebook Pixel you will need your pixel's ID, which you can find in the Ads Manager > Events Manager. If you have not created a pixel, follow these instructions to create one - all you will need is the pixel's ID.

Standard events are predefined visitor actions that correspond to common, conversion-related activities, such as searching for a product, viewing a product, or purchasing a product.
You can configure tracking of these events by enabling the appropriate settings below.
Note: As an additional parameter, some events include product SKU or product combination SKU; make sure that they are filled out correctly in your catalog.

If predefined standard events aren't suitable for your needs, you can track your own custom events, which also can be used to define custom audiences for ad optimization.
You can configure them below. Specify the name and choose widget zones in which the custom event will be tracked. If you don't know which zone to use for your custom event, you can ask about it in our forums.

The General Data Protection Regulation (GDPR) took effect on May 25, 2018, and creates consistent data protection rules across Europe. Businesses who advertise with the Facebook companies can continue to use Facebook platforms and solutions in the same way they do today.
If you already enabled the settings to display Cookie Consent for users, you can pause sending pixel fires to Facebook for users who have not accepted Cookie Consent by enabling the appropriate settings below.
See also What data does the Facebook pixel collect?

@if (string.IsNullOrEmpty(Model.PixelId)) { } else { }
@if (string.IsNullOrEmpty(Model.AccessToken)) { } else { }
@if (!Model.HideStoresList) {
@if (string.IsNullOrEmpty(Model.PixelId)) { } else { }
}
@T("Plugins.Widgets.FacebookPixel.Configuration.CustomEvents")
@if (Model.Id > 0) {
@if (!Model.HideCustomEventsSearch) {
} @await Html.PartialAsync("Table", new DataTablesModel { Name = "grid", UrlRead = new DataUrl("CustomEventList", "FacebookPixel", new RouteValueDictionary { [nameof(Model.CustomEventSearchModel.ConfigurationId)] = Model.Id }), UrlDelete = new DataUrl("CustomEventDelete", "FacebookPixel", new RouteValueDictionary { [nameof(Model.CustomEventSearchModel.ConfigurationId)] = Model.Id }), SearchButtonId = "search", Length = Model.CustomEventSearchModel.PageSize, LengthMenu = Model.CustomEventSearchModel.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.CustomEventSearchModel.WidgetZone), nameof(CustomEventSearchModel)) }, ColumnCollection = new List { new ColumnProperty(nameof(CustomEventModel.EventName)) { Title = T("Plugins.Widgets.FacebookPixel.Configuration.CustomEvents.Fields.EventName").Text, Width = "200" }, new ColumnProperty(nameof(CustomEventModel.WidgetZonesName)) { Title = T("Plugins.Widgets.FacebookPixel.Configuration.CustomEvents.Fields.WidgetZones").Text }, new ColumnProperty(nameof(CustomEventModel.EventName)) { Title = T("Admin.Common.Delete").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonRemove(T("Admin.Common.Delete").Text) } } })
} else {
@T("Plugins.Widgets.FacebookPixel.Configuration.CustomEvents.SaveBeforeEdit")
}