Using this answer I was able to create a pivot table with a tabular layout in EPPlus.
However column headings are not displaying properly. When I create the pivot table with Excel I get the column headings “GA Category” and “Container”:

When I create the pivot table through EPPlus I get the column headings “Row Labels” and “Column Labels”

I was wondering how I can create set the column headings via EPPlus.
Setting the column header via EPPLus cannot be done with the current package. In order to do so I needed to modify ExcelPivotTable.cs in the project, adding this code:
It is then possible to set the row & column captions via the PivotTable class:
If you cannot or do not want to modify EPPlus, you can still add the header to to your pivot table by modifying the XML after the pivot table is created: