The Facebook pixel is a snippet of JavaScript code that allows you to track visitor activity on your website. It works by loading a small library of functions which you can use whenever a site visitor takes an action (called an event) that you want to track (called a conversion). Tracked conversions appear in the Facebook Ads Manager and in the Facebook Analytics dashboard, where they can be used to measure the effectiveness of your ads, to define custom audiences for ad targeting, for dynamic ads campaigns, and to analyze that effectiveness of your website's conversion funnels.
@if (!Model.HideList && !Model.FacebookPixelSearchModel.HideStoresList)
{
}
@T("Admin.Common.Search")
@if (!Model.HideList)
{
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "grid",
UrlRead = new DataUrl("List", "FacebookPixel", null),
SearchButtonId = "search",
Length = Model.FacebookPixelSearchModel.PageSize,
LengthMenu = Model.FacebookPixelSearchModel.AvailablePageSizes,
Filters = new List
{
new FilterParameter(nameof(FacebookPixelSearchModel.StoreId), nameof(FacebookPixelSearchModel))
},
ColumnCollection = new List
{
new ColumnProperty(nameof(FacebookPixelModel.PixelId))
{
Title = T("Plugins.Widgets.FacebookPixel.Configuration.Fields.PixelId").Text
},
new ColumnProperty(nameof(FacebookPixelModel.StoreName))
{
Title = T("Plugins.Widgets.FacebookPixel.Configuration.Fields.Store").Text,
Width = "200",
Visible = (await storeService.GetAllStoresAsync()).Count > 1
},
new ColumnProperty(nameof(FacebookPixelModel.PixelScriptEnabled))
{
Title = T("Plugins.Widgets.FacebookPixel.Configuration.Fields.PixelScriptEnabled").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(FacebookPixelModel.ConversionsApiEnabled))
{
Title = T("Plugins.Widgets.FacebookPixel.Configuration.Fields.ConversionsApiEnabled").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(FacebookPixelModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "100",
Render = new RenderButtonEdit(new DataUrl("~/Admin/FacebookPixel/Edit/"))
}
}
})
}